diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-25 22:40:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-25 22:40:32 (GMT) |
commit | 667d4b577f576323628d97f7b2ed421a2a05322f (patch) | |
tree | 471c8afeed8fbad2ae908ff52661742b886a51d9 /Lib/subprocess.py | |
parent | 291151b7f401be9f38de36664f0f3c0a60829a6e (diff) | |
download | cpython-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.py | 1 |
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): |