[Python-checkins] cpython: make test more robust under Windows

brett.cannon python-checkins at python.org
Sat Jun 15 04:51:10 CEST 2013


http://hg.python.org/cpython/rev/54ad15b3cb6a
changeset:   84139:54ad15b3cb6a
user:        Brett Cannon <brett at python.org>
date:        Fri Jun 14 22:50:57 2013 -0400
summary:
  make test more robust under Windows

files:
  Lib/test/test_py_compile.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -41,7 +41,7 @@
         # 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list