@@ -15,7 +15,7 @@ class TestCategoricalIndex(Base):
1515 _holder = CategoricalIndex
1616
1717 @pytest .fixture
18- def indices (self , request ):
18+ def index (self , request ):
1919 return tm .makeCategoricalIndex (100 )
2020
2121 def create_index (self , categories = None , ordered = False ):
@@ -354,7 +354,7 @@ def test_identical(self):
354354 assert ci1 .identical (ci1 .copy ())
355355 assert not ci1 .identical (ci2 )
356356
357- def test_ensure_copied_data (self , indices ):
357+ def test_ensure_copied_data (self , index ):
358358 # gh-12309: Check the "copy" argument of each
359359 # Index.__new__ is honored.
360360 #
@@ -364,12 +364,12 @@ def test_ensure_copied_data(self, indices):
364364 # FIXME: is this test still meaningful?
365365 _base = lambda ar : ar if getattr (ar , "base" , None ) is None else ar .base
366366
367- result = CategoricalIndex (indices .values , copy = True )
368- tm .assert_index_equal (indices , result )
369- assert _base (indices .values ) is not _base (result .values )
367+ result = CategoricalIndex (index .values , copy = True )
368+ tm .assert_index_equal (index , result )
369+ assert _base (index .values ) is not _base (result .values )
370370
371- result = CategoricalIndex (indices .values , copy = False )
372- assert _base (indices .values ) is _base (result .values )
371+ result = CategoricalIndex (index .values , copy = False )
372+ assert _base (index .values ) is _base (result .values )
373373
374374 def test_equals_categorical (self ):
375375 ci1 = CategoricalIndex (["a" , "b" ], categories = ["a" , "b" ], ordered = True )
0 commit comments