mirror of https://github.com/python/cpython
make test more robust under Windows
This commit is contained in:
parent
4f422e3414
commit
0b16b0d3f0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue