Skip to content

Commit d1620f6

Browse files
committed
Merge with latest master
1 parent 9ba6960 commit d1620f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@ def test_has_duplicates(self, indices):
360360
def test_duplicated(self, indices, keep):
361361
if type(indices) is not self._holder:
362362
pytest.skip('Can only check if we know the index type')
363-
if not len(indices) or isinstance(indices, MultiIndex):
363+
if not len(indices) or isinstance(indices, (MultiIndex, RangeIndex)):
364364
# MultiIndex tested separately in:
365365
# tests/indexes/multi/test_unique_and_duplicates
366-
pytest.skip('Skip check for empty Index and MultiIndex')
366+
pytest.skip('Skip check for empty Index, MultiIndex, RangeIndex')
367367

368368
idx = self._holder(indices)
369369
if idx.has_duplicates:

0 commit comments

Comments
 (0)