From: Ross Lagerwall Date: Wed, 22 Feb 2012 04:02:07 +0000 (+0200) Subject: Fix sporadic test_subprocess regression introduced by 834650d63130. X-Git-Tag: v3.3.0a1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7ad4190586a8a76d90ad7501bbbb5b3f011da5a;p=thirdparty%2FPython%2Fcpython.git Fix sporadic test_subprocess regression introduced by 834650d63130. --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 5deec426db73..e3462d91e458 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -688,8 +688,8 @@ class ProcessTestCase(BaseTestCase): def test_poll(self): p = subprocess.Popen([sys.executable, "-c", - "import os", - "os.read(1)"], stdin=subprocess.PIPE) + "import os; os.read(0, 1)"], + stdin=subprocess.PIPE) self.addCleanup(p.stdin.close) self.assertIsNone(p.poll()) os.write(p.stdin.fileno(), b'A')