summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Rivera <stefanor@debian.org>2023-02-03 15:34:10 -0400
committerStefano Rivera <stefanor@debian.org>2023-02-03 21:46:19 +0100
commite78f73c2fef1265841aff4bb695ef8f1dcc7aad5 (patch)
tree29fedfc6911c1df557a44421b48e8a75a3e2fa49
parent62f475794f65ea46eb669b2082459c9969b7d792 (diff)
Skip testing nanmin() on float64 arrays on mips*el
This fails on mipsel and mips64el, due to a numpy bug: Bug-numpy: 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.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/silx/math/test/test_combo.py b/src/silx/math/test/test_combo.py
index eed0625..bb3f4e4 100644
--- a/src/silx/math/test/test_combo.py
+++ b/src/silx/math/test/test_combo.py
@@ -27,6 +27,7 @@ __license__ = "MIT"
__date__ = "17/01/2018"
+import sys
import unittest
import numpy
@@ -164,6 +165,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)
@@ -181,6 +185,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)