]> granicus.if.org Git - python/commitdiff
make test more robust under Windows
authorBrett Cannon <brett@python.org>
Sat, 15 Jun 2013 02:50:57 +0000 (22:50 -0400)
committerBrett Cannon <brett@python.org>
Sat, 15 Jun 2013 02:50:57 +0000 (22:50 -0400)
Lib/test/test_py_compile.py

index 54dc59660ad6a203c109bec1507876beecacd0f2..9f341bdf8c0a9b1ef9ba8ffbe714efe2d0229451 100644 (file)
@@ -41,7 +41,7 @@ class PyCompileTests(unittest.TestCase):
         # Issue #17222
         try:
             os.symlink(self.pyc_path + '.actual', self.pyc_path)
-        except OSError:
+        except (NotImplementedError, OSError):
             self.skipTest('need to be able to create a symlink for a file')
         else:
             assert os.path.islink(self.pyc_path)