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