mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-httpx: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-httpx)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
f46ae49b13
commit
1747bb4825
1 changed files with 13 additions and 12 deletions
|
@ -5283,7 +5283,8 @@ Some things HTTP Core does do:
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(invoke "pytest" "-vv" "-k"
|
(invoke "pytest" "-vv" "-k"
|
||||||
;; These tests try to open an outgoing connection.
|
;; These tests try to open an outgoing connection.
|
||||||
(string-append
|
(string-append
|
||||||
|
@ -5294,7 +5295,7 @@ Some things HTTP Core does do:
|
||||||
"being_deleted"
|
"being_deleted"
|
||||||
" and not test_that_send_cause_client_to_be_not_closed"
|
" and not test_that_send_cause_client_to_be_not_closed"
|
||||||
" and not test_async_proxy_close"
|
" and not test_async_proxy_close"
|
||||||
" and not test_sync_proxy_close")))))))
|
" and not test_sync_proxy_close"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-autoflake" ,python-autoflake)
|
`(("python-autoflake" ,python-autoflake)
|
||||||
("python-black" ,python-black)
|
("python-black" ,python-black)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue