commit | 667d4b577f576323628d97f7b2ed421a2a05322f | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sat Dec 25 22:40:32 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sat Dec 25 22:40:32 2010 +0000 |
tree | 471c8afeed8fbad2ae908ff52661742b886a51d9 | |
parent | 291151b7f401be9f38de36664f0f3c0a60829a6e [diff] [blame] |
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.
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 @@ def _readerthread(self, fh, buffer): buffer.append(fh.read()) + fh.close() def _communicate(self, input):