mirror of
https://github.com/python/cpython.git
synced 2025-11-08 09:32:01 +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:
|
try:
|
||||||
os.symlink(TESTFN, symlink_path)
|
os.symlink(TESTFN, symlink_path)
|
||||||
can = True
|
can = True
|
||||||
os.remove(symlink_path)
|
|
||||||
except (OSError, NotImplementedError):
|
except (OSError, NotImplementedError):
|
||||||
can = False
|
can = False
|
||||||
|
else:
|
||||||
|
os.remove(symlink_path)
|
||||||
_can_symlink = can
|
_can_symlink = can
|
||||||
return can
|
return can
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue