diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-30 18:41:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-30 18:41:08 (GMT) |
commit | c262a69f545b0a7048bb45a2ede7065fd9826ab8 (patch) | |
tree | 54c4d0aee328fe38ad238d31948ee3ba946eca77 /Lib | |
parent | e00e2f008230c07e54c14f750c99fb755aa96dfc (diff) | |
download | cpython-c262a69f545b0a7048bb45a2ede7065fd9826ab8.zip cpython-c262a69f545b0a7048bb45a2ede7065fd9826ab8.tar.gz cpython-c262a69f545b0a7048bb45a2ede7065fd9826ab8.tar.bz2 |
an AttributeError is perfectly acceptable here
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index a60107b..de1d06e 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: |