mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
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:
parent
291151b7f4
commit
667d4b577f
3 changed files with 24 additions and 14 deletions
|
@ -985,6 +985,7 @@ class Popen(object):
|
|||
|
||||
def _readerthread(self, fh, buffer):
|
||||
buffer.append(fh.read())
|
||||
fh.close()
|
||||
|
||||
|
||||
def _communicate(self, input):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue