mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
temporary symbolic link.
This commit is contained in:
commit
3adba1ff81
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue