os.getxattr
should raise OSError(ENODATA)
for non-existent extended attributes
#971
Labels
os.getxattr
should raise OSError(ENODATA)
for non-existent extended attributes
#971
Describe the bug
The faked
os.getxattr
returnsNone
if the extended attribute does not exist (and is documented as such). The standardos.getxattr
either returnsbytes
or raises anOSError
from the underlying syscall. Thegetxattr
syscall fails withENODATA
if the attribute name is legal but is unset, and fails withENOTSUP
if the attribute name is illegal.How To Reproduce
Your environment
Please run the following in the environment where the problem happened and
paste the output.
The text was updated successfully, but these errors were encountered: