diff --git a/pandas/tseries/tests/test_base.py b/pandas/tseries/tests/test_base.py index 8a86fcba32ecb..a6d58fa3e7ef3 100644 --- a/pandas/tseries/tests/test_base.py +++ b/pandas/tseries/tests/test_base.py @@ -867,7 +867,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, False])) self.assertFalse(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([], dtype=np.int64)) + np.array([], dtype=np.intp)) idx = pd.DatetimeIndex(['2011-01-01', 'NaT'], tz=tz) self.assertTrue(idx._can_hold_na) @@ -875,7 +875,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, True])) self.assertTrue(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([1], dtype=np.int64)) + np.array([1], dtype=np.intp)) def test_equals(self): # GH 13107 @@ -1717,7 +1717,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, False])) self.assertFalse(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([], dtype=np.int64)) + np.array([], dtype=np.intp)) idx = pd.TimedeltaIndex(['1 days', 'NaT']) self.assertTrue(idx._can_hold_na) @@ -1725,7 +1725,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, True])) self.assertTrue(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([1], dtype=np.int64)) + np.array([1], dtype=np.intp)) def test_equals(self): # GH 13107 @@ -2714,7 +2714,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, False])) self.assertFalse(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([], dtype=np.int64)) + np.array([], dtype=np.intp)) idx = pd.PeriodIndex(['2011-01-01', 'NaT'], freq='D') self.assertTrue(idx._can_hold_na) @@ -2722,7 +2722,7 @@ def test_nat(self): tm.assert_numpy_array_equal(idx._isnan, np.array([False, True])) self.assertTrue(idx.hasnans) tm.assert_numpy_array_equal(idx._nan_idxs, - np.array([1], dtype=np.int64)) + np.array([1], dtype=np.intp)) def test_equals(self): # GH 13107