Skip to content

Commit c773407

Browse files
improve test exception handling
1 parent 849493c commit c773407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/arithmetic/test_datetime64.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ class FakeDatetime(MetaDatetime("NewBase", (datetime,), {})):
23732373
if (mod_name == __name__ or
23742374
module.__name__ in ('datetime',)):
23752375
continue
2376-
except AttributeError:
2376+
except (ImportError, AttributeError, TypeError):
23772377
continue
23782378
for attribute_name in dir(module):
23792379
try:

0 commit comments

Comments
 (0)