commit:     76dfbd75b4d6b2fcc0c51535c7e54393c1d705e8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 09:15:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 27 09:15:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76dfbd75

dev-python/numpy: skip test on more 32-bit arches

Bug: https://bugs.gentoo.org/907228
Bug: https://bugs.gentoo.org/328401
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/numpy/numpy-1.24.3.ebuild | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/dev-python/numpy/numpy-1.24.3.ebuild 
b/dev-python/numpy/numpy-1.24.3.ebuild
index 8df287185022..c378a2de3404 100644
--- a/dev-python/numpy/numpy-1.24.3.ebuild
+++ b/dev-python/numpy/numpy-1.24.3.ebuild
@@ -143,12 +143,17 @@ python_test() {
                        
numpy/core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16
                )
        fi
-       if use arm || use x86 ; then
-               EPYTEST_DESELECT+=(
-                       # too large for 32-bit platforms
-                       
numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
-               )
-       fi
+
+       case "${ABI}" in
+               alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86)
+                       EPYTEST_DESELECT+=(
+                               # too large for 32-bit platforms
+                               
numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array
+                       )
+                       ;;
+               *)
+                       ;;
+       esac
 
        distutils_install_for_testing --single-version-externally-managed \
                --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}

Reply via email to