Commit 458c6655 authored by Jason Madden's avatar Jason Madden

Add test for issue #190 and #203.

parent 6c3b2629
...@@ -88,6 +88,14 @@ class Test(greentest.TestCase): ...@@ -88,6 +88,14 @@ class Test(greentest.TestCase):
finally: finally:
os.remove(path) os.remove(path)
def test_close_pipe(self):
# Issue #190, 203
r, w = os.pipe()
x = FileObject(r)
y = FileObject(w, 'w')
x.close()
y.close()
def writer(fobj, line): def writer(fobj, line):
for character in line: for character in line:
......
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