gnu: python-tox: Skip one more test.

* gnu/packages/python-check.scm (python-tox): Use G-expression and
simplify skipped tests.
[arguments] <test-flags>: Simplify and skip one more test.

Change-Id: Icbb85340ffa66c9ce393010f1b3558bc8ab5103f
This commit is contained in:
Sharlatan Hellseher 2025-09-21 11:12:59 +01:00
parent 5f27e04c14
commit 2c49c8c685
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3942,6 +3942,8 @@ when writing automated tests in Python.")
(license license:expat))) (license license:expat)))
(define-public python-tox (define-public python-tox
;; NOTE: Try to avoid including it in inputs, it's for the local development
;; only.
(package (package
(name "python-tox") (name "python-tox")
(version "4.23.2") (version "4.23.2")
@ -3956,20 +3958,20 @@ when writing automated tests in Python.")
(arguments (arguments
(list (list
#:test-flags #:test-flags
'(list "-k" #~(list "-k" (string-join
(string-join ;; These freeze the test suite
(map (lambda (test) (list "not test_parallel"
(string-append "not test_" test)) "test_parallel_live"
'( ;; These freeze the test suite ;; Needs internet access
"parallel" "test_build_wheel_external"
"parallel_live" "test_run_installpkg_targz"
;; Needs internet access "test_python_generate_hash_seed"
"build_wheel_external" ;; XXX Tries to call python-wrapper-3.10.7/bin/tox
"run_installpkg_targz" "test_call_as_exe"
"python_generate_hash_seed" ;; assert 'covdefaults>=1.2; python_version == "2.7"
;; XXX Tries to call python-wrapper-3.10.7/bin/tox ;; or python_version == "3.11"' == 'sphinx>=3'
"call_as_exe")) "test_load_dependency_many_extra")
" and ")))) " and not "))))
(propagated-inputs (propagated-inputs
(list python-cachetools (list python-cachetools
python-chardet python-chardet