From: Brett Cannon Date: Sat, 15 Jun 2013 02:50:57 +0000 (-0400) Subject: make test more robust under Windows X-Git-Tag: v3.4.0a1~495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b16b0d3f0b707a0558c41dd4c88c9465edbf434;p=python make test more robust under Windows --- diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py index 54dc59660a..9f341bdf8c 100644 --- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -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)