From e147802bca02ca103264c5a10fb84457cd12abbf Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 17 Feb 2015 23:34:16 +0100 Subject: Fix warning in test_close_kill_running() Read process exit status to avoid the "Caught subprocess termination from unknown pid" message. --- tests/test_subprocess.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index 92bf1b4..5ccdafb 100644 --- a/tests/test_subprocess.py +++ b/tests/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 -- cgit v1.2.1