Skip to content

Commit 74a6b54

Browse files
committed
an AttributeError is perfectly acceptable here
1 parent f4082ca commit 74a6b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_os.py

Lines changed: 1 addition & 1 deletion
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)