[Python-checkins] r87561 - python/branches/py3k/Lib/test/support.py

brian.curtin python-checkins at python.org
Wed Dec 29 03:04:28 CET 2010


Author: brian.curtin
Date: Wed Dec 29 03:04:28 2010
New Revision: 87561

Log:
Fix #9333 on Windows XP, where os.symlink is not a possibility.


Modified:
   python/branches/py3k/Lib/test/support.py

Modified: python/branches/py3k/Lib/test/support.py
==============================================================================
--- python/branches/py3k/Lib/test/support.py	(original)
+++ python/branches/py3k/Lib/test/support.py	Wed Dec 29 03:04:28 2010
@@ -1422,7 +1422,7 @@
     try:
         os.symlink(TESTFN, TESTFN + "can_symlink")
         can = True
-    except OSError:
+    except (OSError, NotImplementedError):
         can = False
     _can_symlink = can
     return can


More information about the Python-checkins mailing list