summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-02-17 22:36:02 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-02-17 22:36:02 (GMT)
commite7a2f64435d795712a766a088541b43dc7cee5b7 (patch)
tree3df91aa5a19bde52753e5f7f7748ed7758b050bd /Lib
parentf91d845797255240ea42297d520727f93fcab44c (diff)
downloadcpython-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.py1
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