|
|
3d345f |
From ea0a77cf8761a8b8636b93314139ed0fc0a9d1db Mon Sep 17 00:00:00 2001
|
|
|
3d345f |
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
|
|
|
3d345f |
Date: Wed, 30 Sep 2020 11:44:25 +0200
|
|
|
3d345f |
Subject: [PATCH] TST: make a couple of tests expected to fail on 32-bit
|
|
|
3d345f |
architectures
|
|
|
3d345f |
MIME-Version: 1.0
|
|
|
3d345f |
Content-Type: text/plain; charset=UTF-8
|
|
|
3d345f |
Content-Transfer-Encoding: 8bit
|
|
|
3d345f |
|
|
|
3d345f |
In TestConstructUtils.test_concatenate_int32_overflow
|
|
|
3d345f |
and test_nnz_overflow, on a 32-bit architecture, in case
|
|
|
3d345f |
check_free_memory() passes, ValueError is raised on an attempt
|
|
|
3d345f |
to create a numpy array too large for a 32-bit architecture.
|
|
|
3d345f |
|
|
|
3d345f |
Signed-off-by: Nikola Forró <nforro@redhat.com>
|
|
|
3d345f |
---
|
|
|
3d345f |
scipy/sparse/tests/test_construct.py | 1 +
|
|
|
3d345f |
scipy/sparse/tests/test_sparsetools.py | 1 +
|
|
|
3d345f |
2 files changed, 2 insertions(+)
|
|
|
3d345f |
|
|
|
3d345f |
diff --git a/scipy/sparse/tests/test_construct.py b/scipy/sparse/tests/test_construct.py
|
|
|
3d345f |
index 3a882c6cc..5a2b92667 100644
|
|
|
3d345f |
--- a/scipy/sparse/tests/test_construct.py
|
|
|
3d345f |
+++ b/scipy/sparse/tests/test_construct.py
|
|
|
3d345f |
@@ -378,6 +378,7 @@ class TestConstructUtils(object):
|
|
|
3d345f |
excinfo.match(r'Got blocks\[0,1\]\.shape\[0\] == 1, expected 2')
|
|
|
3d345f |
|
|
|
3d345f |
@pytest.mark.slow
|
|
|
3d345f |
+ @pytest.mark.xfail_on_32bit("Can't create large array for test")
|
|
|
3d345f |
def test_concatenate_int32_overflow(self):
|
|
|
3d345f |
""" test for indptr overflow when concatenating matrices """
|
|
|
3d345f |
check_free_memory(30000)
|
|
|
3d345f |
diff --git a/scipy/sparse/tests/test_sparsetools.py b/scipy/sparse/tests/test_sparsetools.py
|
|
|
3d345f |
index 0c208ef44..e95df1ba0 100644
|
|
|
3d345f |
--- a/scipy/sparse/tests/test_sparsetools.py
|
|
|
3d345f |
+++ b/scipy/sparse/tests/test_sparsetools.py
|
|
|
3d345f |
@@ -61,6 +61,7 @@ def test_regression_std_vector_dtypes():
|
|
|
3d345f |
|
|
|
3d345f |
|
|
|
3d345f |
@pytest.mark.slow
|
|
|
3d345f |
+@pytest.mark.xfail_on_32bit("Can't create large array for test")
|
|
|
3d345f |
def test_nnz_overflow():
|
|
|
3d345f |
# Regression test for gh-7230 / gh-7871, checking that coo_todense
|
|
|
3d345f |
# with nnz > int32max doesn't overflow.
|
|
|
3d345f |
--
|
|
|
3d345f |
2.26.2
|
|
|
3d345f |
|