python-dask/0002-TST-Reduce-size-of-expected-DoK-sparse-matrix.patch
Elliott Sales de Andrade 18bb90e1d0 Fix test on i686 arch
2022-12-18 19:25:49 -05:00

31 lines
988 B
Diff

From 9a7f39e1dc96f76caf9edec527ec78aec374b046 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sun, 18 Dec 2022 19:18:43 -0500
Subject: [PATCH 2/2] TST: Reduce size of expected DoK sparse matrix
Apparently, SciPy was not available on 32-bit, and this test was
skipped, but it's recently become available again, and this value is too
large.
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 a13b85b4..934ae834 100644
--- a/dask/tests/test_sizeof.py
+++ b/dask/tests/test_sizeof.py
@@ -82,7 +82,7 @@ def test_sparse_matrix():
assert sizeof(sp.tocoo()) >= 240
assert sizeof(sp.tocsc()) >= 232
assert sizeof(sp.tocsr()) >= 232
- assert sizeof(sp.todok()) >= 192
+ assert sizeof(sp.todok()) >= 188
assert sizeof(sp.tolil()) >= 204
--
2.36.1