[pypy-commit] pypy default: A failing test from issue872.

arigo noreply at buildbot.pypy.org
Tue Jun 5 09:58:34 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
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


More information about the pypy-commit mailing list