We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e8fb8 commit e77e2d3Copy full SHA for e77e2d3
pandas/tests/tseries/offsets/test_ticks.py
@@ -240,7 +240,7 @@ def test_tick_addition(kls, expected):
240
241
def test_tick_delta_overflow():
242
# GH#55503 raise OutOfBoundsTimedelta, not OverflowError
243
- tick = offsets.Day(10**9)
+ tick = offsets.Hour(24 * 10**9)
244
msg = "Cannot cast 1000000000 days 00:00:00 to unit='ns' without overflow"
245
with pytest.raises(OutOfBoundsTimedelta, match=msg):
246
tick.delta
0 commit comments