Skip to content

Commit 8dd9cdd

Browse files
authored
TST: searchsorted returns platform indexers (pandas-dev#24482)
1 parent 3f83627 commit 8dd9cdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/arrays/test_datetimelike.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ def test_searchsorted(self):
170170

171171
# own-type
172172
result = arr.searchsorted(arr[1:3])
173-
expected = np.array([1, 2], dtype=np.int64)
173+
expected = np.array([1, 2], dtype=np.intp)
174174
tm.assert_numpy_array_equal(result, expected)
175175

176176
result = arr.searchsorted(arr[1:3], side="right")
177-
expected = np.array([2, 3], dtype=np.int64)
177+
expected = np.array([2, 3], dtype=np.intp)
178178
tm.assert_numpy_array_equal(result, expected)
179179

180180
# Following numpy convention, NaT goes at the beginning

0 commit comments

Comments
 (0)