Skip to content

Commit 6bf3eae

Browse files
erbianian erb
authored and
ian erb
committed
use index.is_unique
1 parent 90584c0 commit 6bf3eae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/indexes/common.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,7 @@ def test_empty(self):
942942
def test_join_self(self, how):
943943
index = self.create_index()
944944
joined = index.join(index, how=how)
945+
assert isinstance(joined, type(index))
945946

946-
if index is index.unique():
947+
if index.is_unique:
947948
assert index is joined
948-
949-
else:
950-
assert isinstance(joined, type(index))

0 commit comments

Comments
 (0)