From: Benjamin Peterson Date: Mon, 19 Mar 2012 02:26:05 +0000 (-0400) Subject: all OSErrors should indicate there are no extended attributes (closes #14358) X-Git-Tag: v3.3.0a2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ca5661669b1152691c432570a98708dea67b717;p=python 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 d2595153d8..b85d97d432 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)