From 6bf3eae459116a0618e5fa802f324af15e3c6196 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 9 Jun 2017 12:00:09 -0400 Subject: [PATCH] use index.is_unique --- pandas/tests/indexes/common.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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))