From 4ca5661669b1152691c432570a98708dea67b717 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 18 Mar 2012 22:26:05 -0400 Subject: [PATCH] all OSErrors should indicate there are no extended attributes (closes #14358) --- Lib/test/test_os.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index d2595153d85..b85d97d4323 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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)