mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
bpo-44968: Fix test_subprocess_wait_no_same_group in test_asyncio (GH-27870)
The code of the test was never executed because the test function was unintentionally converted to a generator function.
This commit is contained in:
parent
15a64d89a3
commit
585390fdd8
1 changed files with 2 additions and 1 deletions
|
|
@ -1971,10 +1971,11 @@ class SubprocessTestsMixin:
|
|||
functools.partial(MySubprocessProtocol, self.loop),
|
||||
'exit 7', stdin=None, stdout=None, stderr=None,
|
||||
start_new_session=True)
|
||||
_, proto = yield self.loop.run_until_complete(connect)
|
||||
transp, proto = self.loop.run_until_complete(connect)
|
||||
self.assertIsInstance(proto, MySubprocessProtocol)
|
||||
self.loop.run_until_complete(proto.completed)
|
||||
self.assertEqual(7, proto.returncode)
|
||||
transp.close()
|
||||
|
||||
def test_subprocess_exec_invalid_args(self):
|
||||
async def connect(**kwds):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue