reverted the isinstance checks for ABCIndex · pandas-dev/pandas@343dd67 (original) (raw)
`@@ -18,7 +18,7 @@
`
18
18
`is_object_dtype,
`
19
19
`needs_i8_conversion,
`
20
20
`)
`
21
``
`-
from pandas.core.dtypes.generic import ABCIndex, ABCMultiIndex
`
``
21
`+
from pandas.core.dtypes.generic import ABCMultiIndex
`
22
22
``
23
23
`import pandas as pd
`
24
24
`from pandas import (
`
`@@ -733,7 +733,7 @@ def test_fillna(self, index_or_series_obj):
`
733
733
``
734
734
`# values will not be changed
`
735
735
`result = obj.fillna(obj.values[0])
`
736
``
`-
if isinstance(obj, ABCIndex):
`
``
736
`+
if isinstance(obj, Index):
`
737
737
`tm.assert_index_equal(obj, result)
`
738
738
`else:
`
739
739
`tm.assert_series_equal(obj, result)
`
`@@ -770,7 +770,7 @@ def test_fillna_null(self, null_obj, index_or_series_obj):
`
770
770
`obj = klass(values)
`
771
771
``
772
772
`result = obj.fillna(fill_value)
`
773
``
`-
if isinstance(obj, ABCIndex):
`
``
773
`+
if isinstance(obj, Index):
`
774
774
`tm.assert_index_equal(result, expected)
`
775
775
`else:
`
776
776
`tm.assert_series_equal(result, expected)
`