[Python-checkins] cpython: all OSErrors should indicate there are no extended attributes (closes #14358)
benjamin.peterson
python-checkins at python.org
Mon Mar 19 03:26:16 CET 2012
http://hg.python.org/cpython/rev/ada766b07686
changeset: 75833:ada766b07686
parent: 75828:1e827a176306
user: Benjamin Peterson <benjamin at python.org>
date: Sun Mar 18 22:26:05 2012 -0400
summary:
all OSErrors should indicate there are no extended attributes (closes #14358)
files:
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
--- 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list