Commits

Brian Kearns  committed 69db55b

fix test on win32

  • Participants
  • Parent commits bf37313

Comments (0)

Files changed (1)

File pypy/module/posix/test/test_posix2.py

     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