Skip to content

Commit c262a69

Browse files
committed
an AttributeError is perfectly acceptable here
1 parent e00e2f0 commit c262a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_os.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def trunc(x): return x
211211
try:
212212
result.st_mode = 1
213213
self.fail("No exception thrown")
214-
except TypeError:
214+
except (AttributeError, TypeError):
215215
pass
216216

217217
try:

0 commit comments

Comments
 (0)