diff --git a/pandas/tests/indexes/test_interval.py b/pandas/tests/indexes/test_interval.py index 1c527da91bc9a8..44aed23c56178c 100644 --- a/pandas/tests/indexes/test_interval.py +++ b/pandas/tests/indexes/test_interval.py @@ -318,7 +318,7 @@ def test_delete(self, closed): IntervalIndex.from_tuples([(1, 2), ('a', 'z'), (3.14, 6.28)])]) def test_insert(self, data): item = data[0] - idx_item = IntervalIndex([item], closed=data.closed) + idx_item = IntervalIndex([item]) # start expected = idx_item.append(data) @@ -348,7 +348,7 @@ def test_insert(self, data): data.insert(1, bad_item) # GH 18295 (test missing) - na_idx = IntervalIndex([np.nan], closed=data.closed) + na_idx = IntervalIndex.from_tuples([np.nan], closed=data.closed) for na in (np.nan, pd.NaT, None): expected = data[:1].append(na_idx).append(data[1:]) result = data.insert(1, na)