mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
an AttributeError is perfectly acceptable here
This commit is contained in:
parent
e00e2f0082
commit
c262a69f54
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue