Skip to content

Commit 343dd67

Browse files
reverted the isinstance checks for ABCIndex
1 parent afe6e84 commit 343dd67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/base/test_ops.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
is_object_dtype,
1919
needs_i8_conversion,
2020
)
21-
from pandas.core.dtypes.generic import ABCIndex, ABCMultiIndex
21+
from pandas.core.dtypes.generic import ABCMultiIndex
2222

2323
import pandas as pd
2424
from pandas import (
@@ -733,7 +733,7 @@ def test_fillna(self, index_or_series_obj):
733733

734734
# values will not be changed
735735
result = obj.fillna(obj.values[0])
736-
if isinstance(obj, ABCIndex):
736+
if isinstance(obj, Index):
737737
tm.assert_index_equal(obj, result)
738738
else:
739739
tm.assert_series_equal(obj, result)
@@ -770,7 +770,7 @@ def test_fillna_null(self, null_obj, index_or_series_obj):
770770
obj = klass(values)
771771

772772
result = obj.fillna(fill_value)
773-
if isinstance(obj, ABCIndex):
773+
if isinstance(obj, Index):
774774
tm.assert_index_equal(result, expected)
775775
else:
776776
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)