summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-02-22 04:02:07 (GMT)
committerRoss Lagerwall <rosslagerwall@gmail.com>2012-02-22 04:02:07 (GMT)
commite7ad4190586a8a76d90ad7501bbbb5b3f011da5a (patch)
tree79ab7a89032c1fa3c5f0b689b7b4b15fecc2eec4 /Lib/test/test_subprocess.py
parent679be99a85664c485aa237bb7b484ada60a3f623 (diff)
downloadcpython-e7ad4190586a8a76d90ad7501bbbb5b3f011da5a.zip
cpython-e7ad4190586a8a76d90ad7501bbbb5b3f011da5a.tar.gz
cpython-e7ad4190586a8a76d90ad7501bbbb5b3f011da5a.tar.bz2
Fix sporadic test_subprocess regression introduced by 834650d63130.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 5deec42..e3462d9 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')