From 2cd58fb789c56673dc7820597de534fbff60b751 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 5 Jul 2013 20:55:27 +0000 Subject: [PATCH] Explicitly close the subprocess' stdout stream when we're done with it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- unittests/runtests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/runtests.py b/unittests/runtests.py index c7f0b01d..9009389d 100755 --- a/unittests/runtests.py +++ b/unittests/runtests.py @@ -89,6 +89,7 @@ class MyTestSuite(unittest.TestSuite): # output = output.decode('ascii') output = output.rstrip() rval = sp.wait() + sp.stdout.close() if rval: print("Command '%s' failed with exit code %d." % (cmd, rval)) sys.exit(rval)