summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-11-10 08:44:53 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-11-19 09:42:13 +0900
commitedf449a995c7b125a10e7afa2aeb2761f954342c (patch)
treeccfc097a4e9027f2a3e24073abe059d73886e831
parentb92b51c65a4456db668f1e896626c049c9e480e3 (diff)
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
-rw-r--r--gnu/packages/python-xyz.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c81c76cbc5c..81d9b73a190 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13731,7 +13731,12 @@ wraps Python's standard library threading and multiprocessing objects.")
13731 (arguments 13731 (arguments
13732 (list 13732 (list
13733 #:test-flags 13733 #:test-flags
13734 #~(list "-k" (string-join 13734 #~(list "-n" (number->string (parallel-job-count))
13735 ;; The socket tests fail when run in parallel with xdist (see:
13736 ;; <https://github.com/pexpect/pexpect/issues/809>).
13737 "--ignore=tests/test_socket.py"
13738 "--ignore=tests/test_socket_fd.py"
13739 "-k" (string-join
13735 (list 13740 (list
13736 ;; Disable failing test, see 13741 ;; Disable failing test, see
13737 ;; <https://github.com/pexpect/pexpect/issues/568>. 13742 ;; <https://github.com/pexpect/pexpect/issues/568>.
@@ -13763,9 +13768,10 @@ wraps Python's standard library threading and multiprocessing objects.")
13763 ;; and unlikely to change. 13768 ;; and unlikely to change.
13764 (("/bin'") "/dev'"))))))) 13769 (("/bin'") "/dev'")))))))
13765 (native-inputs 13770 (native-inputs
13766 (list bash ;full Bash for 'test_replwrap.py' 13771 (list bash ;full Bash for 'test_replwrap.py'
13767 man-db 13772 man-db
13768 python-pytest 13773 python-pytest
13774 python-pytest-xdist
13769 python-setuptools 13775 python-setuptools
13770 python-wheel 13776 python-wheel
13771 which)) 13777 which))