summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:04:28 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:04:28 (GMT)
commit57160d72047c51f7bbe5fe4dc168f8b2f508b174 (patch)
treecb2b876277eee60cddd3f9cc600f854627365502
parent80e788a5ddddc2d4a01f25e8021534e4d6239d39 (diff)
downloadcpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.zip
cpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.tar.gz
cpython-57160d72047c51f7bbe5fe4dc168f8b2f508b174.tar.bz2
Fix #9333 on Windows XP, where os.symlink is not a possibility.
-rw-r--r--Lib/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 142a87e..fb15d64 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -1422,7 +1422,7 @@ def can_symlink():
try:
os.symlink(TESTFN, TESTFN + "can_symlink")
can = True
- except OSError:
+ except (OSError, NotImplementedError):
can = False
_can_symlink = can
return can