diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-07 17:12:23 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-07 17:12:23 (GMT) |
commit | 400efc22591c33b1d6fb077d98661a9b9adbcaf8 (patch) | |
tree | 158da9764d183b4551b249d44439ac83c5016b3b | |
parent | 2db56878f610136e107993ce0c33b67051dfe0ae (diff) | |
download | cpython-400efc22591c33b1d6fb077d98661a9b9adbcaf8.zip cpython-400efc22591c33b1d6fb077d98661a9b9adbcaf8.tar.gz cpython-400efc22591c33b1d6fb077d98661a9b9adbcaf8.tar.bz2 |
#2777: Try hard to make Win7 buildbot happy...
-rw-r--r-- | Lib/test/test_subprocess.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 6a23414..027546b 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -766,8 +766,9 @@ class Win32ProcessTestCase(unittest.TestCase): self.assertEqual(rc, 47) def _kill_process(self, method, *args): - # Do not inherit file handles from the parent. - p = subprocess.Popen([sys.executable, "-c", "input()"], close_fds=True) + # Some win32 buildbot raises EOFError if stdin is inherited + p = subprocess.Popen([sys.executable, "-c", "input()"], + stdin=subprocess.PIPE) # Let the process initialize time.sleep(0.1) |