diff options
author | Stefano Rivera <stefanor@debian.org> | 2023-02-03 15:34:10 -0400 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2024-02-06 11:54:53 +0100 |
commit | 3cc24cdac3bc94364ddf41ee40ec32b75e080ff3 (patch) | |
tree | fe4ffb1ef3179588b77070a5ccb09236fa36d06e | |
parent | 5d39a9db05774c523d43b4097c20fbe1bf02e3fd (diff) |
Skip testing nanmin() on float64 arrays on mips*el
There was an ABI break in NAN handling on MIPS that hasn't been fully
dealt with, yet. See:
https://sourceware.org/binutils/docs/as/MIPS-NaN-Encodings.html
Discussion in the numpy bug: https://github.com/numpy/numpy/issues/23158
Gbp-Pq: Name 0009-Skip-testing-nanmin-on-float64-arrays-on-mips-el.patch
-rw-r--r-- | src/silx/math/test/test_combo.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/silx/math/test/test_combo.py b/src/silx/math/test/test_combo.py index 917be55..1057344 100644 --- a/src/silx/math/test/test_combo.py +++ b/src/silx/math/test/test_combo.py @@ -27,6 +27,8 @@ __license__ = "MIT" __date__ = "17/01/2018" +import sys + import numpy from silx.utils.testutils import ParametricTestCase @@ -161,6 +163,9 @@ class TestMinMax(ParametricTestCase): def test_nandata(self): """Test min_max with NaN in data""" for dtype in self.FLOATING_DTYPES: + if dtype == 'float64' and sys.implementation._multiarch in ( + 'mips64el-linux-gnuabi64', 'mipsel-linux-gnu'): + continue for data in self.NAN_TEST_DATA: with self.subTest(dtype=dtype, data=data): data = numpy.array(data, dtype=dtype) @@ -178,6 +183,9 @@ class TestMinMax(ParametricTestCase): def test_infdata(self): """Test min_max with inf.""" for dtype in self.FLOATING_DTYPES: + if dtype == 'float64' and sys.implementation._multiarch in ( + 'mips64el-linux-gnuabi64', 'mipsel-linux-gnu'): + continue for data in self.INF_TEST_DATA: with self.subTest(dtype=dtype, data=data): data = numpy.array(data, dtype=dtype) |