summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-06-07 10:19:34 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-06-07 10:19:34 (GMT)
commit3adba1ff81c95c61cf460e2ece025a071a13e924 (patch)
tree9362568cb7ba4ee14313dbfa9fcc5696c0bd20df /Lib
parenteb175c473d8a01ddf554fc45c566fc8e65f69ded (diff)
parent62ec61fb6ad5f1745597017297a455d63a2f97e4 (diff)
downloadcpython-3adba1ff81c95c61cf460e2ece025a071a13e924.zip
cpython-3adba1ff81c95c61cf460e2ece025a071a13e924.tar.gz
cpython-3adba1ff81c95c61cf460e2ece025a071a13e924.tar.bz2
(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
temporary symbolic link.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/support.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index ec2378b..f5dbb85 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -1561,9 +1561,10 @@ def can_symlink():
try:
os.symlink(TESTFN, symlink_path)
can = True
- os.remove(symlink_path)
except (OSError, NotImplementedError):
can = False
+ else:
+ os.remove(symlink_path)
_can_symlink = can
return can