make test more robust under Windows

This commit is contained in:
Brett Cannon 2013-06-14 22:50:57 -04:00
parent 4f422e3414
commit 0b16b0d3f0
1 changed files with 1 additions and 1 deletions

View File

@ -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)