mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user