Skip to content

Commit

Permalink
use index.is_unique
Browse files Browse the repository at this point in the history
  • Loading branch information
erbian authored and ian erb committed Jul 3, 2017
1 parent 90584c0 commit 6bf3eae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pandas/tests/indexes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,7 @@ def test_empty(self):
def test_join_self(self, how):
index = self.create_index()
joined = index.join(index, how=how)
assert isinstance(joined, type(index))

if index is index.unique():
if index.is_unique:
assert index is joined

else:
assert isinstance(joined, type(index))

0 comments on commit 6bf3eae

Please sign in to comment.