We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5a376 commit d8af14fCopy full SHA for d8af14f
1 file changed
Lib/test/test_asyncio/test_subprocess.py
@@ -607,11 +607,8 @@ async def kill_running():
607
608
# kill the process (but asyncio is not notified immediately)
609
proc.kill()
610
- try:
+ with self.assertRaises(ProcessLookupError):
611
proc.wait()
612
- except ProcessLookupError:
613
- # Process already exited, which is expected
614
- pass
615
616
proc.kill = mock.Mock()
617
proc_returncode = proc.poll()
0 commit comments