Skip to content

Commit 0d8beaf

Browse files
ian erberbian
authored andcommitted
explicitly test only unique indices
1 parent 6bf3eae commit 0d8beaf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/tests/indexes/common.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -939,10 +939,8 @@ def test_empty(self):
939939
assert index[:0].empty
940940

941941
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right'])
942-
def test_join_self(self, how):
942+
def test_join_self_unique(self, how):
943943
index = self.create_index()
944-
joined = index.join(index, how=how)
945-
assert isinstance(joined, type(index))
946-
947944
if index.is_unique:
948-
assert index is joined
945+
joined = index.join(index, how=how)
946+
assert (index == joined).all()

0 commit comments

Comments
 (0)