diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-03-19 02:26:05 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-03-19 02:26:05 (GMT) |
commit | 4ca5661669b1152691c432570a98708dea67b717 (patch) | |
tree | d15e44d07dd291fdc10e589f9d11d9dbc3ac55a6 /Lib/test/test_os.py | |
parent | da3d8e05b6d618d65d347a28f668435337c7edef (diff) | |
download | cpython-4ca5661669b1152691c432570a98708dea67b717.zip cpython-4ca5661669b1152691c432570a98708dea67b717.tar.gz cpython-4ca5661669b1152691c432570a98708dea67b717.tar.bz2 |
all OSErrors should indicate there are no extended attributes (closes #14358)
Diffstat (limited to 'Lib/test/test_os.py')
-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) |