mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-10 05:09:33 -05:00
gnu: python-pytest-trio: Honor #:tests? flag.
* gnu/packages/python-check.scm (python-pytest-trio)[arguments]: Honor the #:tests? flag.
This commit is contained in:
parent
68845693a4
commit
1e631e4669
1 changed files with 11 additions and 10 deletions
|
@ -780,16 +780,17 @@ (define-public python-pytest-trio
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(when tests?
|
||||||
(invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
|
(add-installed-pythonpath inputs outputs)
|
||||||
"pytest_trio" "--verbose" "--cov" "-k"
|
(invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
|
||||||
(string-append
|
"pytest_trio" "--verbose" "--cov" "-k"
|
||||||
;; Needs network
|
(string-append
|
||||||
"not test_async_yield_fixture_with_nursery"
|
;; Needs network
|
||||||
" and not test_try"
|
"not test_async_yield_fixture_with_nursery"
|
||||||
;; No keyboard interrupt in our build environment.
|
" and not test_try"
|
||||||
" and not test_actual_test")))))))
|
;; No keyboard interrupt in our build environment.
|
||||||
|
" and not test_actual_test"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-hypothesis" ,python-hypothesis)
|
`(("python-hypothesis" ,python-hypothesis)
|
||||||
("python-pytest" ,python-pytest)
|
("python-pytest" ,python-pytest)
|
||||||
|
|
Loading…
Reference in a new issue