Commit 1fff878c 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 a5e61651
......@@ -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