an AttributeError is perfectly acceptable here

This commit is contained in:
Benjamin Peterson 2010-06-30 18:41:08 +00:00
parent e00e2f0082
commit c262a69f54
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def trunc(x): return x
try: try:
result.st_mode = 1 result.st_mode = 1
self.fail("No exception thrown") self.fail("No exception thrown")
except TypeError: except (AttributeError, TypeError):
pass pass
try: try: