Skip to content

Commit 0b6cece

Browse files
authored
TST: Avoid hashing np.timedelta64 without unit (#60416)
1 parent 39dcbb4 commit 0b6cece

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
@@ -1254,7 +1254,7 @@ def test_value_counts_nat(self):
12541254
result_dt = algos.value_counts_internal(dt)
12551255
tm.assert_series_equal(result_dt, exp_dt)
12561256

1257-
exp_td = Series({np.timedelta64(10000): 1}, name="count")
1257+
exp_td = Series([1], index=[np.timedelta64(10000)], name="count")
12581258
result_td = algos.value_counts_internal(td)
12591259
tm.assert_series_equal(result_td, exp_td)
12601260

0 commit comments

Comments
 (0)