From: Benjamin Peterson Date: Wed, 30 Jun 2010 18:41:08 +0000 (+0000) Subject: an AttributeError is perfectly acceptable here X-Git-Tag: v2.7~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c262a69f545b0a7048bb45a2ede7065fd9826ab8;p=thirdparty%2FPython%2Fcpython.git an AttributeError is perfectly acceptable here --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index a60107baa050..de1d06ea136d 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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: