From b013f58c1bf2a06a4dc4aaf9b92d8921f75a2345 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 20 Jul 2023 00:05:48 -0400 Subject: [PATCH 3/4] TST: Increase maximum for sizeof test to pass 32-bit In that case, the result is 1244, which is ~2.6 * `sys.sizeof` (476), slightly over the 2 used in the existing test. Signed-off-by: Elliott Sales de Andrade --- dask/tests/test_sizeof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dask/tests/test_sizeof.py b/dask/tests/test_sizeof.py index 9b43a7ae..866d119b 100644 --- a/dask/tests/test_sizeof.py +++ b/dask/tests/test_sizeof.py @@ -81,7 +81,7 @@ def test_pandas_multiindex(): index = pd.MultiIndex.from_product([range(5), ["a", "b", "c", "d", "e"]]) actual_size = sys.getsizeof(index) - assert 0.5 * actual_size < sizeof(index) < 2 * actual_size + assert 0.5 * actual_size < sizeof(index) < 3 * actual_size assert isinstance(sizeof(index), int) -- 2.41.0