guix_mirror_bot pushed a commit to branch astro-update
in repository guix.

commit bc4d981181c9757d1f405ddad949342fafd6ea74
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Mar 21 15:00:36 2026 +0000

    gnu: python-pyhalo: Skip one more test.
    
    * gnu/packages/astronomy.scm (python-pyhalo)[arguments] <test-flags>:
    Skip one more tests and rework them.
    [native-inputs]: Remove python-wheel.
    
    Change-Id: Id45b8a16e12036d6064159272942da8a45f528b5
---
 gnu/packages/astronomy.scm | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index a1f6c64595..985beb297e 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -7501,10 +7501,24 @@ using the PyCPL Python API.")
     (build-system pyproject-build-system)
     (arguments
      (list
-      ;; tests: 194 passed, 3 deselected, 119 warnings
-      ;; ValueError: The truth value of an array with more than one element
-      ;; is ambiguous. Use a.any() or a.all()
-      #:test-flags #~(list "-k" "not test_vmax")
+      ;; tests: 194 passed, 3 deselected, 22922 warnings
+      #:test-flags
+      ;; See: <https://github.com/dangilman/pyHalo/issues/73>.
+      #~(list #$@(map (lambda (ls) (string-append "--deselect=tests/"
+                                                  (string-join ls "::")))
+                      ;; Arrays are not almost equal to 7 decimals
+                      ;; ACTUAL: 14.246936385951503
+                      ;; DESIRED: 14.247120064947586
+                      '(("test_halos/test_concentrations.py"
+                         "TestConcentration"
+                         "test_concentration_diemer_joyce")
+                        ;; ValueError: The truth value of an array with more
+                        ;; than one element is ambiguous. Use a.any() or
+                        ;; a.all()
+                        ("test_halos/test_nfw_halo.py" "TestNFWHalos"
+                         "test_vmax")
+                        ("test_halos/test_tnfw_halo.py" "TestTNFWHalos"
+                         "test_vmax"))))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'fix-setupup.py
@@ -7522,8 +7536,7 @@ using the PyCPL Python API.")
               (setenv "HOME" "/tmp"))))))
     (native-inputs
      (list python-pytest
-           python-setuptools
-           python-wheel))
+           python-setuptools))
     (propagated-inputs
      (list python-astropy
            python-click

Reply via email to