Issue #10763: subprocess.communicate() closes stdout and stderr if both are

pipes (bug specific to Windows).

Improve also the unit test: write a portable unit test.
This commit is contained in:
Victor Stinner 2010-12-25 22:40:32 +00:00
parent 291151b7f4
commit 667d4b577f
3 changed files with 24 additions and 14 deletions

View file

@ -985,6 +985,7 @@ class Popen(object):
def _readerthread(self, fh, buffer):
buffer.append(fh.read())
fh.close()
def _communicate(self, input):