Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r55303:a3ce5fe94074
Date: 2012-06-04 15:11 +0200
http://bitbucket.org/pypy/pypy/changeset/a3ce5fe94074/

Log:    A failing test from issue872.

diff --git a/pypy/module/posix/test/test_posix2.py 
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -945,6 +945,20 @@
         import os
         assert hasattr(os, 'kill')
 
+    def test_pipe_flush(self):
+        os = self.posix
+        ffd, gfd = os.pipe()
+        f = os.fdopen(ffd, 'r')
+        g = os.fdopen(gfd, 'w')
+        g.write('he')
+        g.flush()
+        x = f.read(1)
+        assert x == 'h'
+        f.flush()
+        x = f.read(1)
+        assert x == 'e'
+
+
 class AppTestEnvironment(object):
     def setup_class(cls):
         cls.space = space
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to