summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_py_compile.py2
1 files changed, 1 insertions, 1 deletions
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)