guix_mirror_bot pushed a commit to branch add-compress-debug-symbols-phase
in repository guix.

commit b669b01bd7cb491f90aff850202573f473df40a7
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Mon Nov 10 08:44:53 2025 +0900

    gnu: python-pexpect: Run tests in parallel.
    
    * gnu/packages/python-xyz.scm (python-pexpect) [#:test-flags]: Add "-n"
    argument.  Ignore test_socket.py and test_socket_fd.py.
    [native-inputs]: Add python-pytest-xdist.
    
    Change-Id: I17492104517579da3d63a130eab51e96ec8efa53
---
 gnu/packages/python-xyz.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1629735cb8..57a48f35ba 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13752,7 +13752,12 @@ wraps Python's standard library threading and 
multiprocessing objects.")
     (arguments
      (list
       #:test-flags
-      #~(list "-k" (string-join
+      #~(list "-n" (number->string (parallel-job-count))
+              ;; The socket tests fail when run in parallel with xdist (see:
+              ;; <https://github.com/pexpect/pexpect/issues/809>).
+              "--ignore=tests/test_socket.py"
+              "--ignore=tests/test_socket_fd.py"
+              "-k" (string-join
                     (list
                      ;; Disable failing test, see
                      ;; <https://github.com/pexpect/pexpect/issues/568>.
@@ -13784,9 +13789,10 @@ wraps Python's standard library threading and 
multiprocessing objects.")
                 ;; and unlikely to change.
                 (("/bin'") "/dev'")))))))
     (native-inputs
-     (list bash    ;full Bash for 'test_replwrap.py'
+     (list bash                         ;full Bash for 'test_replwrap.py'
            man-db
            python-pytest
+           python-pytest-xdist
            python-setuptools
            python-wheel
            which))

Reply via email to