Skip to content

Commit 3119e90

Browse files
authored
COMPAT: use the correct dtype for interval comparisons on 32-bit (#16011)
1 parent 005a09e commit 3119e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/test_interval.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@ def test_get_loc_closed(self):
779779
np.array([0], dtype='int64'))
780780

781781
def test_get_indexer_closed(self):
782-
x = np.arange(1000, dtype='intp')
783-
found = x
782+
x = np.arange(1000, dtype='float64')
783+
found = x.astype('intp')
784784
not_found = (-1 * np.ones(1000)).astype('intp')
785785
for leaf_size in [1, 10, 100, 10000]:
786786
for closed in ['left', 'right', 'both', 'neither']:

0 commit comments

Comments
 (0)