summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-25 22:40:32 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-25 22:40:32 (GMT)
commit667d4b577f576323628d97f7b2ed421a2a05322f (patch)
tree471c8afeed8fbad2ae908ff52661742b886a51d9 /Lib/subprocess.py
parent291151b7f401be9f38de36664f0f3c0a60829a6e (diff)
downloadcpython-667d4b577f576323628d97f7b2ed421a2a05322f.zip
cpython-667d4b577f576323628d97f7b2ed421a2a05322f.tar.gz
cpython-667d4b577f576323628d97f7b2ed421a2a05322f.tar.bz2
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.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 452611c..c12898d 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -985,6 +985,7 @@ class Popen(object):
def _readerthread(self, fh, buffer):
buffer.append(fh.read())
+ fh.close()
def _communicate(self, input):