diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-21 20:30:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-21 20:30:08 (GMT) |
commit | 88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0 (patch) | |
tree | fde601c27ec5230d520047a10a8145aafd1c23e9 | |
parent | 5bd27c3be5734e158f67ff86087a977a25d89161 (diff) | |
download | cpython-88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0.zip cpython-88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0.tar.gz cpython-88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0.tar.bz2 |
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.
(cherry picked from commit 585390fdd8661b4bc08bdfc27551292da9b4b9b8)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 55fc266..778dd43 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1970,10 +1970,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): |