Commit 57154478 authored by Denis Bilenko's avatar Denis Bilenko

test__subprocess.py: create a pipe for test_nonblock_removed

parent 18d2f643
......@@ -108,7 +108,9 @@ class Test(greentest.TestCase):
def test_nonblock_removed(self):
# see issue #134
p = subprocess.Popen(['grep', 'text'], stdin=subprocess.FileObject(os.dup(1)))
r, w = os.pipe()
p = subprocess.Popen(['grep', 'text'], stdin=subprocess.FileObject(r))
os.close(w)
try:
self.assertEqual(p.wait(timeout=0.1), None)
finally:
......
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