From 0b16b0d3f0b707a0558c41dd4c88c9465edbf434 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 14 Jun 2013 22:50:57 -0400 Subject: make test more robust under Windows --- Lib/test/test_py_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_py_compile.py') 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) -- cgit v1.2.1