Skip to content

Commit 24b83f8

Browse files
ian erberbian
ian erb
authored andcommitted
explicitly test only unique indices
1 parent 0a13bdb commit 24b83f8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/tests/indexes/common.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -935,12 +935,8 @@ def test_empty(self):
935935
assert index[:0].empty
936936

937937
@pytest.mark.parametrize('how', ['outer', 'inner', 'left', 'right'])
938-
def test_join_self(self, how):
938+
def test_join_self_unique(self, how):
939939
index = self.create_index()
940-
joined = index.join(index, how=how)
941-
942940
if index.is_unique:
943-
assert index is joined
944-
945-
else:
946-
assert isinstance(joined, type(index))
941+
joined = index.join(index, how=how)
942+
assert (index == joined).all()

0 commit comments

Comments
 (0)