Commit e7ad4190 authored by Ross Lagerwall's avatar Ross Lagerwall

Fix sporadic test_subprocess regression introduced by 834650d63130.

parent 679be99a
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment