Author: Brian Kearns <bdkea...@gmail.com>
Branch: 
Changeset: r70528:69db55ba6eaf
Date: 2014-04-09 18:20 -0700
http://bitbucket.org/pypy/pypy/changeset/69db55ba6eaf/

Log:    fix test on win32

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
@@ -308,7 +308,11 @@
     def test_fdopen_directory(self):
         import errno
         os = self.posix
-        fd = os.open('/', os.O_RDONLY)
+        try:
+            fd = os.open('/', os.O_RDONLY)
+        except OSError as e:
+            assert e.errno == errno.EACCES
+            skip("system cannot open directories")
         exc = raises(IOError, os.fdopen, fd, 'r')
         assert exc.value.errno == errno.EISDIR
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to