summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-30 18:41:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-30 18:41:08 (GMT)
commitc262a69f545b0a7048bb45a2ede7065fd9826ab8 (patch)
tree54c4d0aee328fe38ad238d31948ee3ba946eca77 /Lib
parente00e2f008230c07e54c14f750c99fb755aa96dfc (diff)
downloadcpython-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.py2
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: