Skip to content

Commit d1ba4c6

Browse files
bang128topper-123
authored andcommitted
Update
1 parent 379251b commit d1ba4c6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/_testing/asserters.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
)
77

88
import numpy as np
9-
109
from pandas._libs.missing import is_matching_na
1110
from pandas._libs.sparse import SparseIndex
1211
import pandas._libs.testing as _testing

pandas/tests/indexes/test_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
ensure_index_from_sequences,
4444
)
4545
from pandas.tests.indexes.common import Base
46-
46+
from pandas.core.dtypes.common import is_object_dtype
4747

4848
class TestIndex(Base):
4949
_index_cls = Index
@@ -677,7 +677,7 @@ def test_is_numeric(self, index, expected):
677677
indirect=["index"],
678678
)
679679
def test_is_object(self, index, expected):
680-
assert index.is_object() is expected
680+
assert is_object_dtype(index) is expected
681681

682682
def test_summary(self, index):
683683
index._summary()

0 commit comments

Comments
 (0)