andreas pushed a commit to branch python-team
in repository guix.

commit bc4c4b0a88384a7ac959fdaca09a665762e3d19b
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Apr 3 21:07:59 2025 +0100

    gnu: python-numdifftools: Skip some tests.
    
    * gnu/packages/python-science.scm (python-numdifftools) [arguments]
    <test-flags>: Skip 7 tests failing with a NumPy 1.26.2.
    
    Change-Id: I5dc5865d0ac1ba47e79aac57d4e1768ecdb590be
---
 gnu/packages/python-science.scm | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 49e46f7ff3..4de2b78af7 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -372,7 +372,21 @@ Features:
     (build-system pyproject-build-system)
     (arguments
      (list
-      #:test-flags #~(list "--pyargs" "numdifftools")
+      #:test-flags
+      #~(list "--pyargs" "numdifftools"
+              "-k" (string-join
+                    ;; Tests failing with error: TypeError: a must be an array
+                    ;; of real numbers, see
+                    ;; <https://github.com/pbrod/numdifftools/issues/72>.
+                    (list "not test_high_order_derivative"
+                          "test_low_order_derivative_on_example_functions"
+                          "test_sinx_div_x"
+                          "test_complex_hessian_issue_35"
+
+                          "numdifftools.fornberg.Taylor"
+                          "numdifftools.fornberg.derivative"
+                          "numdifftools.fornberg.taylor")
+                    " and not "))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'relax-requirements

Reply via email to