Kaydet (Commit) 3adba1ff authored tarafından Victor Stinner's avatar Victor Stinner

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

temporary symbolic link.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment