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:
Efraim Flashner 2021-10-15 13:31:17 +03:00
parent 68845693a4
commit 1e631e4669
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -780,7 +780,8 @@ (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)
(when tests?
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs" (invoke "pytest" "-W" "error" "-ra" "-v" "--pyargs"
"pytest_trio" "--verbose" "--cov" "-k" "pytest_trio" "--verbose" "--cov" "-k"
@ -789,7 +790,7 @@ (define-public python-pytest-trio
"not test_async_yield_fixture_with_nursery" "not test_async_yield_fixture_with_nursery"
" and not test_try" " and not test_try"
;; No keyboard interrupt in our build environment. ;; No keyboard interrupt in our build environment.
" and not test_actual_test"))))))) " 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)