mirror of https://github.com/python/cpython.git
an AttributeError is perfectly acceptable here
This commit is contained in:
parent
e00e2f0082
commit
c262a69f54
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue