diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-02-17 22:36:02 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-02-17 22:36:02 (GMT) |
commit | e7a2f64435d795712a766a088541b43dc7cee5b7 (patch) | |
tree | 3df91aa5a19bde52753e5f7f7748ed7758b050bd /Lib | |
parent | f91d845797255240ea42297d520727f93fcab44c (diff) | |
download | cpython-e7a2f64435d795712a766a088541b43dc7cee5b7.zip cpython-e7a2f64435d795712a766a088541b43dc7cee5b7.tar.gz cpython-e7a2f64435d795712a766a088541b43dc7cee5b7.tar.bz2 |
asyncio: Fix warning in test_close_kill_running()
Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 92bf1b4..5ccdafb 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -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 |