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
|
# 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)
|
||||||
|
|
Loading…
Reference in New Issue