summaryrefslogtreecommitdiff
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:04:28 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-12-29 02:04:28 +0000
commit57160d72047c51f7bbe5fe4dc168f8b2f508b174 (patch)
treecb2b876277eee60cddd3f9cc600f854627365502 /Lib/test/support.py
parent80e788a5ddddc2d4a01f25e8021534e4d6239d39 (diff)
downloadcpython-git-57160d72047c51f7bbe5fe4dc168f8b2f508b174.tar.gz
Fix #9333 on Windows XP, where os.symlink is not a possibility.
Diffstat (limited to 'Lib/test/support.py')
-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 142a87ea4e..fb15d64fe4 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