diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 8d1d7e082b0907..82e27a705bf847 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -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))