We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba6960 commit d1620f6Copy full SHA for d1620f6
pandas/tests/indexes/common.py
@@ -360,10 +360,10 @@ def test_has_duplicates(self, indices):
360
def test_duplicated(self, indices, keep):
361
if type(indices) is not self._holder:
362
pytest.skip('Can only check if we know the index type')
363
- if not len(indices) or isinstance(indices, MultiIndex):
+ if not len(indices) or isinstance(indices, (MultiIndex, RangeIndex)):
364
# MultiIndex tested separately in:
365
# tests/indexes/multi/test_unique_and_duplicates
366
- pytest.skip('Skip check for empty Index and MultiIndex')
+ pytest.skip('Skip check for empty Index, MultiIndex, RangeIndex')
367
368
idx = self._holder(indices)
369
if idx.has_duplicates:
0 commit comments