[Python-checkins] cpython (3.4): asyncio: Fix warning in test_close_kill_running()

victor.stinner python-checkins at python.org
Tue Feb 17 23:37:50 CET 2015


https://hg.python.org/cpython/rev/28bfbf91bb53
changeset:   94670:28bfbf91bb53
branch:      3.4
parent:      94668:6beaf66f0410
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Feb 17 23:36:02 2015 +0100
summary:
  asyncio: Fix warning in test_close_kill_running()

Read process exit status to avoid the "Caught subprocess termination from
unknown pid" message.

files:
  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
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -367,6 +367,7 @@
             proc.kill = kill
             returncode = transport.get_returncode()
             transport.close()
+            yield from transport._wait()
             return (returncode, kill_called)
 
         # Ignore "Close running child process: kill ..." log

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list