diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ddc697f71b..61167d3db5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27536,7 +27536,37 @@ validation testing and application logic.") ;; This one test fails because a deprecation warning is printed. (substitute* "numba/tests/test_import.py" (("def test_no_accidental_warnings") - "def disabled_test_no_accidental_warnings")))) + "def disabled_test_no_accidental_warnings")) + ;; Some tests timeout or crash on some architectures. + ,@(cond + ((target-aarch64?) + `((substitute* "numba/tests/test_sets.py" + (("def test_add_discard") + "def disabled_test_add_discard") + (("def test_isdisjoint") + "def disabled_test_isdisjoint") + (("def test_issubset") + "def disabled_test_issubset") + (("def test_issuperset") + "def disabled_test_issuperset") + (("def test_remove_error") + "def disabled_test_remove_error")))) + ((target-ppc64le?) + `((substitute* "numba/tests/test_mathlib.py" + (("def test_ldexp") + "def disabled_test_ldexp")))) + ((target-arm32?) + ;; Armhf emulation on aarch64 using armv8 machines returns + ;; 'armv8l' from platform.machine() and won't skip some tests. + ;; Fix borrowed from an upstream bug report: + ;; https://github.com/numba/numba/issues/6345#issuecomment-764993001 + `((substitute* '("numba/tests/support.py" + "numba/tests/test_dispatcher.py") + (("platform\\.machine\\(\\) == 'armv7l'") + (string-append + "platform.machine().startswith('armv') and " + "int(platform.machine()[len('armv'):-1]) >= 7"))))) + (#t '())))) (replace 'check (lambda* (#:key tests? inputs outputs #:allow-other-keys) (when tests? |