(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the

temporary symbolic link.
This commit is contained in:
Victor Stinner 2011-06-07 12:19:34 +02:00
commit 3adba1ff81

View file

@ -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