[pypy-commit] pypy default: Skip this test on Windows

amauryfa noreply at buildbot.pypy.org
Fri Feb 10 01:22:06 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r52342:12a8ddcd4671
Date: 2012-02-10 01:20 +0100
http://bitbucket.org/pypy/pypy/changeset/12a8ddcd4671/

Log:	Skip this test on Windows

diff --git a/pypy/module/_io/test/test_fileio.py b/pypy/module/_io/test/test_fileio.py
--- a/pypy/module/_io/test/test_fileio.py
+++ b/pypy/module/_io/test/test_fileio.py
@@ -134,7 +134,10 @@
         assert a == 'a\nbxxxxxxx'
 
     def test_nonblocking_read(self):
-        import os, fcntl
+        try:
+            import os, fcntl
+        except ImportError:
+            skip("need fcntl to set nonblocking mode")
         r_fd, w_fd = os.pipe()
         # set nonblocking
         fcntl.fcntl(r_fd, fcntl.F_SETFL, os.O_NONBLOCK)


More information about the pypy-commit mailing list