[Python-checkins] r78767 - python/trunk/Lib/test/test_subprocess.py

florent.xicluna python-checkins at python.org
Sun Mar 7 18:12:23 CET 2010


Author: florent.xicluna
Date: Sun Mar  7 18:12:23 2010
New Revision: 78767

Log:
#2777: Try hard to make Win7 buildbot happy...


Modified:
   python/trunk/Lib/test/test_subprocess.py

Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py	(original)
+++ python/trunk/Lib/test/test_subprocess.py	Sun Mar  7 18:12:23 2010
@@ -766,8 +766,9 @@
         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)


More information about the Python-checkins mailing list