Commit e7a2f644 authored by Victor Stinner's avatar Victor Stinner

asyncio: Fix warning in test_close_kill_running()

Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.
parent f91d8457
...@@ -367,6 +367,7 @@ class SubprocessMixin: ...@@ -367,6 +367,7 @@ class SubprocessMixin:
proc.kill = kill proc.kill = kill
returncode = transport.get_returncode() returncode = transport.get_returncode()
transport.close() transport.close()
yield from transport._wait()
return (returncode, kill_called) return (returncode, kill_called)
# Ignore "Close running child process: kill ..." log # Ignore "Close running child process: kill ..." log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment