mirror of
https://github.com/python/cpython.git
synced 2025-10-23 15:12:02 +00:00
all OSErrors should indicate there are no extended attributes (closes #14358)
This commit is contained in:
parent
da3d8e05b6
commit
4ca5661669
1 changed files with 1 additions and 3 deletions
|
@ -1752,9 +1752,7 @@ def supports_extended_attributes():
|
||||||
with open(support.TESTFN, "wb") as fp:
|
with open(support.TESTFN, "wb") as fp:
|
||||||
try:
|
try:
|
||||||
os.fsetxattr(fp.fileno(), b"user.test", b"")
|
os.fsetxattr(fp.fileno(), b"user.test", b"")
|
||||||
except OSError as e:
|
except OSError:
|
||||||
if e.errno != errno.ENOTSUP:
|
|
||||||
raise
|
|
||||||
return False
|
return False
|
||||||
finally:
|
finally:
|
||||||
support.unlink(support.TESTFN)
|
support.unlink(support.TESTFN)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue