Skip to content

Commit 9447d2a

Browse files
committed
skip interval tests
1 parent 7e19fd2 commit 9447d2a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pandas/tests/indexes/common.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,9 @@ def test_map(self):
10211021
def test_map_dictlike(self, mapper):
10221022

10231023
index = self.create_index()
1024-
if isinstance(index, pd.CategoricalIndex):
1025-
pytest.skip("tested in test_categorical")
1024+
if isinstance(index, (pd.CategoricalIndex, pd.IntervalIndex)):
1025+
pytest.skip("skipping tests for {}".format(type(index)))
1026+
10261027
expected = index
10271028

10281029
identity = mapper(index.values, index)

pandas/tests/indexes/test_interval.py

-4
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,6 @@ def test_repr_max_seq_item_setting(self):
566566
def test_repr_roundtrip(self):
567567
super(TestIntervalIndex, self).test_repr_roundtrip()
568568

569-
@pytest.mark.xfail(reason='get_indexer behavior does not currently work')
570-
def test_map(self):
571-
super(TestIntervalIndex, self).test_map()
572-
573569
def test_get_item(self, closed):
574570
i = IntervalIndex.from_arrays((0, 1, np.nan), (1, 2, np.nan),
575571
closed=closed)

0 commit comments

Comments
 (0)