Skip to content

Commit 2fcd179

Browse files
fixup recursiveness of the custom check
1 parent 2b5aa95 commit 2fcd179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/base/test_misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def test_memory_usage(index_or_series_memory_obj):
9494

9595
def _is_object_dtype(obj):
9696
if isinstance(obj, pd.MultiIndex):
97-
return any(is_object_dtype(level) for level in obj.levels)
97+
return any(_is_object_dtype(level) for level in obj.levels)
9898
elif isinstance(obj.dtype, pd.CategoricalDtype):
99-
return is_object_dtype(obj.dtype.categories)
99+
return _is_object_dtype(obj.dtype.categories)
100100
elif isinstance(obj.dtype, pd.StringDtype):
101101
return obj.dtype.storage == "python"
102102
return is_object_dtype(obj)

0 commit comments

Comments
 (0)