You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #38905, I changed the distribution algorithm of pytest-xdist to no from loadfile. And the test pandas/tests/base/test_misc.py:test_memory_usage failed on macOS.
index_or_series_obj = Series([], Name: a, dtype: float64)
@pytest.mark.skipif(PYPY, reason="not relevant for PyPy")
def test_memory_usage(index_or_series_obj):
obj = index_or_series_obj
res = obj.memory_usage()
res_deep = obj.memory_usage(deep=True)
is_object = is_object_dtype(obj) or (
isinstance(obj, Series) and is_object_dtype(obj.index)
)
is_categorical = is_categorical_dtype(obj.dtype) or (
isinstance(obj, Series) and is_categorical_dtype(obj.index.dtype)
)
if len(obj) == 0:
if isinstance(obj, Index):
expected = 0
else:
expected = 108 if IS64 else 64
> assert res_deep == res == expected
E assert 0 == 108
The text was updated successfully, but these errors were encountered:
fangchenli
added
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
Compat
pandas objects compatability with Numpy or Python functions
Testing
pandas testing functions or related to the test suite
and removed
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Jan 10, 2021
In #38905, I changed the distribution algorithm of pytest-xdist to
no
fromloadfile
. And the testpandas/tests/base/test_misc.py:test_memory_usage
failed on macOS.The text was updated successfully, but these errors were encountered: