Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Oct 15, 2023
1 parent 19e8fb8 commit e77e2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/tseries/offsets/test_ticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_tick_addition(kls, expected):

def test_tick_delta_overflow():
# GH#55503 raise OutOfBoundsTimedelta, not OverflowError
tick = offsets.Day(10**9)
tick = offsets.Hour(24 * 10**9)
msg = "Cannot cast 1000000000 days 00:00:00 to unit='ns' without overflow"
with pytest.raises(OutOfBoundsTimedelta, match=msg):
tick.delta
Expand Down

0 comments on commit e77e2d3

Please sign in to comment.