python-dask/0003-TST-Increase-maximum-for-sizeof-test-to-pass-32-bit.patch
2024-02-24 16:42:52 -05:00

30 lines
1.0 KiB
Diff

From 84706407d4e633658c77503d46a500d09cda5932 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Thu, 20 Jul 2023 00:05:48 -0400
Subject: [PATCH 3/6] 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 <quantum.analyst@gmail.com>
---
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 ef3d6ba3..dd1a0b81 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(50), list("abcdefghilmnopqrstuvwxyz")])
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.43.0