]> granicus.if.org Git - python/commitdiff
#2777: Try hard to make Win7 buildbot happy...
authorFlorent Xicluna <florent.xicluna@gmail.com>
Sun, 7 Mar 2010 17:12:23 +0000 (17:12 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Sun, 7 Mar 2010 17:12:23 +0000 (17:12 +0000)
Lib/test/test_subprocess.py

index 6a23414aad351556c054b7b1a6f5f63e7778ad64..027546b047cf25ec9a85645e855dc20ba95df36a 100644 (file)
@@ -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)