Commit 4fd25fde authored by Denis Bilenko's avatar Denis Bilenko

test__subprocess.py: add test_nonblock_removed (issue 134). Thanks to mrkhingston.

parent d5274f84
......@@ -106,6 +106,15 @@ class Test(greentest.TestCase):
finally:
p.stdout.close()
def test_nonblock_removed(self):
# see issue #134
p = subprocess.Popen(['grep', 'text'], stdin=subprocess.FileObject(os.dup(1)))
try:
self.assertEqual(p.wait(timeout=0.1), None)
finally:
if p.poll() is None:
p.send_signal(9)
if __name__ == '__main__':
greentest.main()
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