@@ -15,7 +15,7 @@ class TestCategoricalIndex(Base):
15
15
_holder = CategoricalIndex
16
16
17
17
@pytest .fixture
18
- def indices (self , request ):
18
+ def index (self , request ):
19
19
return tm .makeCategoricalIndex (100 )
20
20
21
21
def create_index (self , categories = None , ordered = False ):
@@ -354,7 +354,7 @@ def test_identical(self):
354
354
assert ci1 .identical (ci1 .copy ())
355
355
assert not ci1 .identical (ci2 )
356
356
357
- def test_ensure_copied_data (self , indices ):
357
+ def test_ensure_copied_data (self , index ):
358
358
# gh-12309: Check the "copy" argument of each
359
359
# Index.__new__ is honored.
360
360
#
@@ -364,12 +364,12 @@ def test_ensure_copied_data(self, indices):
364
364
# FIXME: is this test still meaningful?
365
365
_base = lambda ar : ar if getattr (ar , "base" , None ) is None else ar .base
366
366
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 )
370
370
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 )
373
373
374
374
def test_equals_categorical (self ):
375
375
ci1 = CategoricalIndex (["a" , "b" ], categories = ["a" , "b" ], ordered = True )
0 commit comments