[Python-checkins] r82409 - python/trunk/Lib/test/test_os.py
benjamin.peterson
python-checkins at python.org
Wed Jun 30 20:41:08 CEST 2010
Author: benjamin.peterson
Date: Wed Jun 30 20:41:08 2010
New Revision: 82409
Log:
an AttributeError is perfectly acceptable here
Modified:
python/trunk/Lib/test/test_os.py
Modified: python/trunk/Lib/test/test_os.py
==============================================================================
--- python/trunk/Lib/test/test_os.py (original)
+++ python/trunk/Lib/test/test_os.py Wed Jun 30 20:41:08 2010
@@ -211,7 +211,7 @@
try:
result.st_mode = 1
self.fail("No exception thrown")
- except TypeError:
+ except (AttributeError, TypeError):
pass
try:
More information about the Python-checkins
mailing list