Commit 18f7f09a authored by Guido van Rossum's avatar Guido van Rossum

The assignment to result.st_rdev can raise AttributeError as well as

TypeError (on systems where it's not defined at all, it raises
AttributeError; when it's defined, assignment to it raises TypeError).
parent 0d9b61be
......@@ -111,7 +111,7 @@ class StatAttributeTests(unittest.TestCase):
try:
result.st_rdev = 1
self.fail("No exception thrown")
except TypeError:
except (AttributeError, TypeError):
pass
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