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
This commit is contained in:
Robin Dunn
2013-07-05 20:55:27 +00:00
parent f00fa32e46
commit 2cd58fb789

View File

@@ -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)