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 d8af14f commit cb8d874Copy full SHA for cb8d874
1 file changed
Lib/test/test_asyncio/test_subprocess.py
@@ -607,8 +607,12 @@ async def kill_running():
607
608
# kill the process (but asyncio is not notified immediately)
609
proc.kill()
610
- with self.assertRaises(ProcessLookupError):
+ try:
611
proc.wait()
612
+ except ProcessLookupError:
613
+ # Process already exited, which is expected but not always
614
+ # raised
615
+ pass
616
617
proc.kill = mock.Mock()
618
proc_returncode = proc.poll()
0 commit comments