Skip to content

Commit 3bcbf0c

Browse files
authored
Backport PR #60416 on branch 2.3.x (TST: Avoid hashing np.timedelta64 without unit) (#60418)
Backport PR #60416: TST: Avoid hashing np.timedelta64 without unit
1 parent 112c2e9 commit 3bcbf0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_algos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def test_value_counts_nat(self):
12831283
result_dt = algos.value_counts(dt)
12841284
tm.assert_series_equal(result_dt, exp_dt)
12851285

1286-
exp_td = Series({np.timedelta64(10000): 1}, name="count")
1286+
exp_td = Series([1], index=[np.timedelta64(10000)], name="count")
12871287
with tm.assert_produces_warning(FutureWarning, match=msg):
12881288
result_td = algos.value_counts(td)
12891289
tm.assert_series_equal(result_td, exp_td)

0 commit comments

Comments
 (0)