diff options
| -rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ 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) |
