diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py index 6bf48aad96f07..89369c19cf05d 100644 --- a/pandas/tests/arrays/test_datetimelike.py +++ b/pandas/tests/arrays/test_datetimelike.py @@ -170,11 +170,11 @@ def test_searchsorted(self): # own-type result = arr.searchsorted(arr[1:3]) - expected = np.array([1, 2], dtype=np.int64) + expected = np.array([1, 2], dtype=np.intp) tm.assert_numpy_array_equal(result, expected) result = arr.searchsorted(arr[1:3], side="right") - expected = np.array([2, 3], dtype=np.int64) + expected = np.array([2, 3], dtype=np.intp) tm.assert_numpy_array_equal(result, expected) # Following numpy convention, NaT goes at the beginning