Skip to content

Commit 7cf101d

Browse files
committed
update tests
1 parent 002f271 commit 7cf101d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/tests/resample/test_timedelta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,5 @@ def test_arrow_duration_resample():
215215
# GH 56371
216216
idx = pd.Index(timedelta_range("1 day", periods=5), dtype="duration[ns][pyarrow]")
217217
expected = Series(np.arange(5, dtype=np.float64), index=idx)
218-
result = expected.resample("1D").mean()
218+
result = expected.resample("24h").mean()
219219
tm.assert_series_equal(result, expected)

pandas/tests/tseries/offsets/test_ticks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,8 @@ def test_tick_delta_overflow():
243243
# GH#55503 raise OutOfBoundsTimedelta, not OverflowError
244244
tick = offsets.Hour(24 * 10**9)
245245
msg = "Cannot cast 1000000000 days 00:00:00 to unit='ns' without overflow"
246-
depr_msg = "Day.delta is deprecated"
247246
with pytest.raises(OutOfBoundsTimedelta, match=msg):
248-
with tm.assert_produces_warning(FutureWarning, match=depr_msg):
249-
tick.delta
247+
tick.delta
250248

251249

252250
@pytest.mark.parametrize("cls", tick_classes)

0 commit comments

Comments
 (0)