From e6f2374bfbdee394537d03dcb8a066ca688af5c638daf0eadfd16bd90f89b8c9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 21 Oct 2022 09:10:06 +0000 Subject: [PATCH] - Skip failing test on 32bit arch (gh#pydata/sparse#490). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sparse?expand=0&rev=13 --- python-sparse.changes | 5 +++++ python-sparse.spec | 3 +++ skip-32bit-archs.patch | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 skip-32bit-archs.patch diff --git a/python-sparse.changes b/python-sparse.changes index 62b9b10..afc8b55 100644 --- a/python-sparse.changes +++ b/python-sparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 21 08:39:20 UTC 2022 - Matej Cepl + +- Skip failing test on 32bit arch (gh#pydata/sparse#490). + ------------------------------------------------------------------- Thu Jul 14 17:53:01 UTC 2022 - Ben Greiner diff --git a/python-sparse.spec b/python-sparse.spec index f94f14b..f0a4fca 100644 --- a/python-sparse.spec +++ b/python-sparse.spec @@ -26,6 +26,9 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pydata/sparse Source: https://files.pythonhosted.org/packages/source/s/sparse/sparse-%{version}.tar.gz +# PATCH-FIX-UPSTREAM skip-32bit-archs.patch gh#pydata/sparse#490 mcepl@suse.com +# Skip some tests on 32bit architecture +Patch0: skip-32bit-archs.patch BuildRequires: %{python_module setuptools} # SECTION test requirements BuildRequires: %{python_module dask-array} diff --git a/skip-32bit-archs.patch b/skip-32bit-archs.patch new file mode 100644 index 0000000..f741067 --- /dev/null +++ b/skip-32bit-archs.patch @@ -0,0 +1,23 @@ +--- + sparse/tests/test_coo.py | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/sparse/tests/test_coo.py ++++ b/sparse/tests/test_coo.py +@@ -1,6 +1,7 @@ + import contextlib + import operator + import pickle ++import platform + import sys + from functools import reduce + +@@ -14,6 +15,8 @@ from sparse import COO + from sparse._settings import NEP18_ENABLED + from sparse._utils import assert_eq, random_value_array, html_table + ++pytestmark = pytest.mark.skipif(platform.architecture()[0] == '32bit', ++ reason='Fails on 32bit arch (gh#pydata/sparse#490)') + + @pytest.fixture(scope="module", params=["f8", "f4", "i8", "i4"]) + def random_sparse(request):