all OSErrors should indicate there are no extended attributes (closes #14358)
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index d259515..b85d97d 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1752,9 +1752,7 @@
         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)