me
/
guix
Archived
1
0
Fork 0

gnu: python-hpack: Respect "--without-tests".

* gnu/packages/python-web.scm
  (python-hpack)[arguments]<#:phases>{check}: Respect #:tests?.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
master
Maxime Devos 2021-07-08 17:23:53 +02:00 committed by Mathieu Othacehe
parent a5a90a98d8
commit a6e70f3f0c
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 7 additions and 6 deletions

View File

@ -877,12 +877,13 @@ into HTTP/2 frames.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "test" "-k"
;; This test will be fixed in the next version. See:
;; https://github.com/python-hyper/hpack/issues/168.
"not test_get_by_index_out_of_range"))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "test" "-k"
;; This test will be fixed in the next version. See:
;; https://github.com/python-hyper/hpack/issues/168.
"not test_get_by_index_out_of_range")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://hyper.rtfd.org")