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

commit dc874d43ebcacdec0f580d440bbbb9762b44dfda
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jan 25 18:02:15 2026 +0000

    gnu: python-pyzbar: Fix test flags.
    
    * gnu/packages/aidc.scm (python-pyzbar)[arguments] <test-flags>: Adjust
    skipped tests, "-k" option does not support glob pattern use explicit
    "--deselect" parameter and skip 2 tests.
    
    Change-Id: Iad255dd3bb71c98c385c2e03e75435fef3fe7172
---
 gnu/packages/aidc.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm
index ccc63a1620..8fc4185724 100644
--- a/gnu/packages/aidc.scm
+++ b/gnu/packages/aidc.scm
@@ -74,9 +74,15 @@
     (arguments
      (list
       #:test-flags
-      ;; This tests if find_library was called once, but we remove
-      ;; the call in the stage below to make the library find libzbar.
-      #~(list "-k" "not test_*_found_non_windows")
+      ;; This tests if find_library was called once, but we remove the call in
+      ;; the stage below to make the library find libzbar.
+      #~(list #$@(map (lambda (test) (string-append "--deselect="
+                                                    "pyzbar/tests/"
+                                                    "test_zbar_library.py::"
+                                                    "TestLoad::"
+                                                    test))
+                      (list "test_found_non_windows"
+                            "test_not_found_non_windows")))
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'set-library-file-name

Reply via email to