Author: Brian Kearns <bdkea...@gmail.com>
Branch: use-file-star-for-file
Changeset: r73395:830102f2bf6d
Date: 2014-09-09 11:48 -0400
http://bitbucket.org/pypy/pypy/changeset/830102f2bf6d/

Log:    remove obsolete test

diff --git a/pypy/module/_file/test/test_file.py 
b/pypy/module/_file/test/test_file.py
--- a/pypy/module/_file/test/test_file.py
+++ b/pypy/module/_file/test/test_file.py
@@ -282,38 +282,6 @@
             f.close()
 
 
-class AppTestNonblocking(object):
-    def setup_class(cls):
-        from pypy.module._file.interp_file import W_File
-
-        cls.old_read = os.read
-
-        if cls.runappdirect:
-            py.test.skip("works with internals of _file impl on py.py")
-        state = [0]
-        def read(fd, n=None):
-            if fd != 42:
-                return cls.old_read(fd, n)
-            if state[0] == 0:
-                state[0] += 1
-                return "xyz"
-            if state[0] < 3:
-                state[0] += 1
-                raise OSError(errno.EAGAIN, "xyz")
-            return ''
-        os.read = read
-        stdin = W_File(cls.space)
-        stdin.file_fdopen(42, 'rb', 1)
-        stdin.name = '<stdin>'
-        cls.w_stream = stdin
-
-    def teardown_class(cls):
-        os.read = cls.old_read
-
-    def test_nonblocking_file(self):
-        res = self.stream.read()
-        assert res == 'xyz'
-
 class AppTestConcurrency(object):
     # these tests only really make sense on top of a translated pypy-c,
     # because on top of py.py the inner calls to os.write() don't
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to