commit | 4ca5661669b1152691c432570a98708dea67b717 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Mar 18 22:26:05 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Mar 18 22:26:05 2012 -0400 |
tree | d15e44d07dd291fdc10e589f9d11d9dbc3ac55a6 | |
parent | da3d8e05b6d618d65d347a28f668435337c7edef [diff] [blame] |
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)