mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
gnu: python-debugpy: Disable tests.
* gnu/packages/python-xyz.scm (python-debugpy)[arguments]: Respect tests? in 'check phase and disable #:tests.
This commit is contained in:
parent
9d2ef7344e
commit
3e6bc1edca
1 changed files with 13 additions and 11 deletions
|
@ -12406,6 +12406,7 @@ and other @acronym{IDEs, Integrated Development Environments}.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0.
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-sh-in-tests
|
(add-after 'unpack 'patch-sh-in-tests
|
||||||
|
@ -12426,6 +12427,7 @@ and other @acronym{IDEs, Integrated Development Environments}.")
|
||||||
(setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
|
(setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(invoke "pytest" "-vv"
|
(invoke "pytest" "-vv"
|
||||||
"-n" (number->string (parallel-job-count))
|
"-n" (number->string (parallel-job-count))
|
||||||
"-k"
|
"-k"
|
||||||
|
@ -12436,7 +12438,7 @@ and other @acronym{IDEs, Integrated Development Environments}.")
|
||||||
;; https://github.com/microsoft/debugpy/issues/342 and
|
;; https://github.com/microsoft/debugpy/issues/342 and
|
||||||
;; https://github.com/microsoft/debugpy/issues/880).
|
;; https://github.com/microsoft/debugpy/issues/880).
|
||||||
"not test_custom_python_args "
|
"not test_custom_python_args "
|
||||||
"and not test_autokill ")))))))
|
"and not test_autokill "))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
;; See: https://raw.githubusercontent.com/microsoft/debugpy/
|
;; See: https://raw.githubusercontent.com/microsoft/debugpy/
|
||||||
;; main/tests/requirements.txt.
|
;; main/tests/requirements.txt.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue