From 61d9dafcd42e7e560e36b94e7b92efaf2bbee9d449a56f2e31ea76cdb6e854f1 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 28 May 2024 10:18:24 +0000 Subject: [PATCH] Accepting request 1177313 from home:dgarcia:branches:devel:languages:python:numeric - Skip broken test on ppc64le bsc#1225394, gh#numba/numba#8489 OBS-URL: https://build.opensuse.org/request/show/1177313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=86 --- python-numba.changes | 6 ++++++ skip-failing-tests.patch | 36 ++++++++++++++++++++++++------------ 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/python-numba.changes b/python-numba.changes index 139c258..254ca88 100644 --- a/python-numba.changes +++ b/python-numba.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 28 09:30:26 UTC 2024 - Daniel Garcia + +- Skip broken test on ppc64le + bsc#1225394, gh#numba/numba#8489 + ------------------------------------------------------------------- Fri Mar 22 20:05:25 UTC 2024 - Dirk Müller diff --git a/skip-failing-tests.patch b/skip-failing-tests.patch index 624a4e1..a8e5cac 100644 --- a/skip-failing-tests.patch +++ b/skip-failing-tests.patch @@ -3,11 +3,11 @@ numba/tests/test_parfors_passes.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) -Index: numba-0.59.0/numba/tests/test_parfors.py +Index: numba-0.59.1/numba/tests/test_parfors.py =================================================================== ---- numba-0.59.0.orig/numba/tests/test_parfors.py -+++ numba-0.59.0/numba/tests/test_parfors.py -@@ -1198,6 +1198,7 @@ class TestParforNumPy(TestParforsBase): +--- numba-0.59.1.orig/numba/tests/test_parfors.py ++++ numba-0.59.1/numba/tests/test_parfors.py +@@ -1199,6 +1199,7 @@ class TestParforNumPy(TestParforsBase): self.check_variants(test_impl2, data_gen) self.count_parfors_variants(test_impl2, data_gen) @@ -15,7 +15,7 @@ Index: numba-0.59.0/numba/tests/test_parfors.py def test_ndarray_fill(self): def test_impl(x): x.fill(7.0) -@@ -4639,7 +4640,7 @@ class TestParforsVectorizer(TestPrangeBa +@@ -4659,7 +4660,7 @@ class TestParforsVectorizer(TestPrangeBa return asm @@ -24,7 +24,7 @@ Index: numba-0.59.0/numba/tests/test_parfors.py @TestCase.run_test_in_subprocess def test_vectorizer_fastmath_asm(self): """ This checks that if fastmath is set and the underlying hardware -@@ -4680,7 +4681,7 @@ class TestParforsVectorizer(TestPrangeBa +@@ -4700,7 +4701,7 @@ class TestParforsVectorizer(TestPrangeBa # check no zmm addressing is present self.assertTrue('zmm' not in v) @@ -33,10 +33,10 @@ Index: numba-0.59.0/numba/tests/test_parfors.py @TestCase.run_test_in_subprocess(envvars={'NUMBA_BOUNDSCHECK': '0'}) def test_unsigned_refusal_to_vectorize(self): """ This checks that if fastmath is set and the underlying hardware -Index: numba-0.59.0/numba/tests/test_parfors_passes.py +Index: numba-0.59.1/numba/tests/test_parfors_passes.py =================================================================== ---- numba-0.59.0.orig/numba/tests/test_parfors_passes.py -+++ numba-0.59.0/numba/tests/test_parfors_passes.py +--- numba-0.59.1.orig/numba/tests/test_parfors_passes.py ++++ numba-0.59.1/numba/tests/test_parfors_passes.py @@ -514,6 +514,7 @@ class TestConvertLoopPass(BaseTest): str(raises.exception), ) @@ -45,10 +45,10 @@ Index: numba-0.59.0/numba/tests/test_parfors_passes.py def test_init_prange(self): def test_impl(): n = 20 -Index: numba-0.59.0/numba/tests/test_cli.py +Index: numba-0.59.1/numba/tests/test_cli.py =================================================================== ---- numba-0.59.0.orig/numba/tests/test_cli.py -+++ numba-0.59.0/numba/tests/test_cli.py +--- numba-0.59.1.orig/numba/tests/test_cli.py ++++ numba-0.59.1/numba/tests/test_cli.py @@ -264,6 +264,7 @@ class TestGDBCLIInfoBrokenGdbs(TestCase) self.assertIn("No such file or directory", stdout) self.assertIn(path, stdout) @@ -57,3 +57,15 @@ Index: numba-0.59.0/numba/tests/test_cli.py def test_nonsense_gdb_binary(self): # Tests that a nonsense binary specified as gdb it picked up ok env = os.environ.copy() +Index: numba-0.59.1/numba/tests/test_mathlib.py +=================================================================== +--- numba-0.59.1.orig/numba/tests/test_mathlib.py ++++ numba-0.59.1/numba/tests/test_mathlib.py +@@ -508,6 +508,7 @@ class TestMathLib(TestCase): + float('-inf'), float('inf'), float('nan')] + self.run_unary(pyfunc, x_types, x_values, prec='exact') + ++ @unittest.skip("Fails on ppc64le https://github.com/numba/numba/issues/8489") + def test_ldexp(self): + pyfunc = ldexp + cfunc = njit(pyfunc)