Skip to content

Commit 58542e8

Browse files
MattRijkjreback
authored andcommitted
TST: #14345 fixes TestDatetimeIndexOps test_nat AssertionErrors on 32-bit
closes #14345 Author: mattrijk <[email protected]> Closes #14347 from MattRijk/issue#14345 and squashes the following commits: 73ad3d7 [mattrijk] line 2710 formatting update for whitespace ea4f151 [mattrijk] second formatting update for whitespace 262492f [mattrijk] TST: #14345 fixes TestDatetimeIndexOps test_nat AssertionErors
1 parent 507e037 commit 58542e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/tseries/tests/test_base.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -867,15 +867,15 @@ def test_nat(self):
867867
tm.assert_numpy_array_equal(idx._isnan, np.array([False, False]))
868868
self.assertFalse(idx.hasnans)
869869
tm.assert_numpy_array_equal(idx._nan_idxs,
870-
np.array([], dtype=np.int64))
870+
np.array([], dtype=np.intp))
871871

872872
idx = pd.DatetimeIndex(['2011-01-01', 'NaT'], tz=tz)
873873
self.assertTrue(idx._can_hold_na)
874874

875875
tm.assert_numpy_array_equal(idx._isnan, np.array([False, True]))
876876
self.assertTrue(idx.hasnans)
877877
tm.assert_numpy_array_equal(idx._nan_idxs,
878-
np.array([1], dtype=np.int64))
878+
np.array([1], dtype=np.intp))
879879

880880
def test_equals(self):
881881
# GH 13107
@@ -1717,15 +1717,15 @@ def test_nat(self):
17171717
tm.assert_numpy_array_equal(idx._isnan, np.array([False, False]))
17181718
self.assertFalse(idx.hasnans)
17191719
tm.assert_numpy_array_equal(idx._nan_idxs,
1720-
np.array([], dtype=np.int64))
1720+
np.array([], dtype=np.intp))
17211721

17221722
idx = pd.TimedeltaIndex(['1 days', 'NaT'])
17231723
self.assertTrue(idx._can_hold_na)
17241724

17251725
tm.assert_numpy_array_equal(idx._isnan, np.array([False, True]))
17261726
self.assertTrue(idx.hasnans)
17271727
tm.assert_numpy_array_equal(idx._nan_idxs,
1728-
np.array([1], dtype=np.int64))
1728+
np.array([1], dtype=np.intp))
17291729

17301730
def test_equals(self):
17311731
# GH 13107
@@ -2714,15 +2714,15 @@ def test_nat(self):
27142714
tm.assert_numpy_array_equal(idx._isnan, np.array([False, False]))
27152715
self.assertFalse(idx.hasnans)
27162716
tm.assert_numpy_array_equal(idx._nan_idxs,
2717-
np.array([], dtype=np.int64))
2717+
np.array([], dtype=np.intp))
27182718

27192719
idx = pd.PeriodIndex(['2011-01-01', 'NaT'], freq='D')
27202720
self.assertTrue(idx._can_hold_na)
27212721

27222722
tm.assert_numpy_array_equal(idx._isnan, np.array([False, True]))
27232723
self.assertTrue(idx.hasnans)
27242724
tm.assert_numpy_array_equal(idx._nan_idxs,
2725-
np.array([1], dtype=np.int64))
2725+
np.array([1], dtype=np.intp))
27262726

27272727
def test_equals(self):
27282728
# GH 13107

0 commit comments

Comments
 (0)