Skip to content

Commit c684099

Browse files
committed
BUG: pytz.AmbiguousTimeError not caught in hypothesis test test_on_offset_implementations (GH41906)
1 parent 4d10194 commit c684099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_on_offset_implementations(dt, offset):
100100
# (dt + offset) - offset == dt
101101
try:
102102
compare = (dt + offset) - offset
103-
except pytz.NonExistentTimeError:
103+
except (pytz.NonExistentTimeError, pytz.AmbiguousTimeError):
104104
# dt + offset does not exist, assume(False) to indicate
105105
# to hypothesis that this is not a valid test case
106106
assume(False)

0 commit comments

Comments
 (0)