Kaydet (Commit) 4ca56616 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

all OSErrors should indicate there are no extended attributes (closes #14358)

üst da3d8e05
......@@ -1752,9 +1752,7 @@ def supports_extended_attributes():
with open(support.TESTFN, "wb") as fp:
try:
os.fsetxattr(fp.fileno(), b"user.test", b"")
except OSError as e:
if e.errno != errno.ENOTSUP:
raise
except OSError:
return False
finally:
support.unlink(support.TESTFN)
......
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