Skip to content

Commit f97e9a4

Browse files
committed
add comment about AmbiguousTimeError
1 parent c684099 commit f97e9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/tseries/offsets/test_offsets_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def test_on_offset_implementations(dt, offset):
101101
try:
102102
compare = (dt + offset) - offset
103103
except (pytz.NonExistentTimeError, pytz.AmbiguousTimeError):
104-
# dt + offset does not exist, assume(False) to indicate
105-
# to hypothesis that this is not a valid test case
104+
# When dt + offset does not exist or is DST-ambiguous, assume(False) to
105+
# indicate to hypothesis that this is not a valid test case
106106
assume(False)
107107

108108
assert offset.is_on_offset(dt) == (compare == dt)

0 commit comments

Comments
 (0)