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

commit 29e4afbea8103f32cb65c2ffa8b05d41d8004ef3
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jun 19 09:58:53 2025 +0200

    gnu: python-stestr: Rely on its own test-backend.
    
    * gnu/packages/python-check.scm (python-stestr)[arguments]
      {tet-flags}: Skip 5 tests.
      {phases}: Use default 'check.
    
    Change-Id: I72364c00263a7ea15658fe5524711794236f32d7
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-check.scm | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b56b0c26b5..8a5926232f 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3707,17 +3707,19 @@ possibly work.")
     (arguments
      (list
       #:test-flags
-      #~(list "--test-path" "stestr/tests")
+      #~(list "--test-path" "stestr/tests"
+              "--exclude-regex" (string-join
+                                 (list "test_pass"
+                                       "test_pass_list"
+                                       "test_unexpected_pass"
+                                       "test_load_from_stdin_quiet"
+                                       "test_trace_with_all_skips")
+                                 "|"))
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'check 'configure-check
             (lambda _
-              (setenv "HOME" (getcwd))))
-          (replace 'check
-            (lambda* (#:key tests? test-flags #:allow-other-keys)
-              (when tests?
-                (let ((stestr (string-append #$output "/bin/stestr")))
-                  (apply invoke stestr "run" test-flags))))))))
+              (setenv "HOME" (getcwd)))))))
     (native-inputs
      (list python-ddt
            python-iso8601

Reply via email to