]> granicus.if.org Git - python/commitdiff
asyncio: Fix warning in test_close_kill_running()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 22:36:02 +0000 (23:36 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Feb 2015 22:36:02 +0000 (23:36 +0100)
Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.

Lib/test/test_asyncio/test_subprocess.py

index 92bf1b45edf0373b74f7389105c8f0b0ad264c9b..5ccdafb151f6871b61dc7e0736090b2be9790760 100644 (file)
@@ -367,6 +367,7 @@ class SubprocessMixin:
             proc.kill = kill
             returncode = transport.get_returncode()
             transport.close()
+            yield from transport._wait()
             return (returncode, kill_called)
 
         # Ignore "Close running child process: kill ..." log