Skip to content

Commit 24991fb

Browse files
committed
COMPAT: empty IntervalIndexis np.int64 dtype
xref #19022
1 parent bbfbe48 commit 24991fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexes/interval/test_interval.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_constructors_nan(self, closed, data):
140140
np.array([], dtype='datetime64[ns]')])
141141
def test_constructors_empty(self, data, closed):
142142
# GH 18421
143-
expected_dtype = getattr(data, 'dtype', np.intp)
143+
expected_dtype = getattr(data, 'dtype', np.int64)
144144
expected_values = np.array([], dtype=object)
145145
expected_index = IntervalIndex(data, closed=closed)
146146

0 commit comments

Comments
 (0)