]> granicus.if.org Git - python/commitdiff
an AttributeError is perfectly acceptable here
authorBenjamin Peterson <benjamin@python.org>
Wed, 30 Jun 2010 18:41:08 +0000 (18:41 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 30 Jun 2010 18:41:08 +0000 (18:41 +0000)
Lib/test/test_os.py

index a60107baa050865afc47eb38be2358ef0c4c3212..de1d06ea136d9edf76010176ad1a3db5d448136e 100644 (file)
@@ -211,7 +211,7 @@ class StatAttributeTests(unittest.TestCase):
         try:
             result.st_mode = 1
             self.fail("No exception thrown")
-        except TypeError:
+        except (AttributeError, TypeError):
             pass
 
         try: