Skip to content

Commit 31788da

Browse files
authored
TST: 32bit dtype compat pandas-dev#36579 (pandas-dev#36584)
1 parent 6648439 commit 31788da

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/tests/indexes/period/test_indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def test_get_indexer_non_unique(self):
450450

451451
result = idx1.get_indexer_non_unique(idx2)
452452
expected_indexer = np.array([1, 0, 2, -1, -1], dtype=np.intp)
453-
expected_missing = np.array([2, 3], dtype=np.int64)
453+
expected_missing = np.array([2, 3], dtype=np.intp)
454454

455455
tm.assert_numpy_array_equal(result[0], expected_indexer)
456456
tm.assert_numpy_array_equal(result[1], expected_missing)

pandas/tests/indexes/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ def construct(dtype):
26072607
ex1 = np.array([0, 3, 1, 4, 2, 5] * 2, dtype=np.intp)
26082608
ex2 = np.array([], dtype=np.intp)
26092609
tm.assert_numpy_array_equal(result[0], ex1)
2610-
tm.assert_numpy_array_equal(result[1], ex2.astype(np.int64))
2610+
tm.assert_numpy_array_equal(result[1], ex2)
26112611

26122612
else:
26132613
no_matches = np.array([-1] * 6, dtype=np.intp)

pandas/tests/test_algos.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ def test_lookup_nan(self, writable):
15451545
xs.setflags(write=writable)
15461546
m = ht.Float64HashTable()
15471547
m.map_locations(xs)
1548-
tm.assert_numpy_array_equal(m.lookup(xs), np.arange(len(xs), dtype=np.int64))
1548+
tm.assert_numpy_array_equal(m.lookup(xs), np.arange(len(xs), dtype=np.intp))
15491549

15501550
def test_add_signed_zeros(self):
15511551
# GH 21866 inconsistent hash-function for float64
@@ -1578,7 +1578,7 @@ def test_lookup_overflow(self, writable):
15781578
xs.setflags(write=writable)
15791579
m = ht.UInt64HashTable()
15801580
m.map_locations(xs)
1581-
tm.assert_numpy_array_equal(m.lookup(xs), np.arange(len(xs), dtype=np.int64))
1581+
tm.assert_numpy_array_equal(m.lookup(xs), np.arange(len(xs), dtype=np.intp))
15821582

15831583
def test_get_unique(self):
15841584
s = Series([1, 2, 2 ** 63, 2 ** 63], dtype=np.uint64)

0 commit comments

Comments
 (0)