Commits

Benjamin Peterson committed ada766b

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

Comments (0)

Files changed (1)

Lib/test/test_os.py

         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)