Kaydet (Commit) c262a69f authored tarafından Benjamin Peterson's avatar Benjamin Peterson

an AttributeError is perfectly acceptable here

üst e00e2f00
...@@ -211,7 +211,7 @@ class StatAttributeTests(unittest.TestCase): ...@@ -211,7 +211,7 @@ class StatAttributeTests(unittest.TestCase):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment