Commit 0b16b0d3 authored by Brett Cannon's avatar Brett Cannon

make test more robust under Windows

parent 4f422e34
...@@ -41,7 +41,7 @@ class PyCompileTests(unittest.TestCase): ...@@ -41,7 +41,7 @@ class PyCompileTests(unittest.TestCase):
# Issue #17222 # Issue #17222
try: try:
os.symlink(self.pyc_path + '.actual', self.pyc_path) 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') self.skipTest('need to be able to create a symlink for a file')
else: else:
assert os.path.islink(self.pyc_path) assert os.path.islink(self.pyc_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment