gnu: python-geventhttpclient: Disable test that fails with Python 3.8.

* gnu/packages/python-web.scm (python-geventhttpclient)[arguments]: In the
check phase, add pytest flag to filter broken test.  While at it, don't
reorder the phase, as it now runs after install by default.
This commit is contained in:
Marius Bakke 2020-04-25 00:11:53 +02:00
parent 9962b87780
commit 6ac6c1d28d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1978,14 +1978,16 @@ (define-public python-geventhttpclient
(lambda _
(delete-file "src/geventhttpclient/tests/test_client.py")
#t))
(delete 'check)
(add-after 'install 'check
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "py.test" "src/geventhttpclient/tests" "-v"
;; Append the test modules to sys.path to avoid
;; namespace conflict which breaks SSL tests.
"--import-mode=append")
"--import-mode=append"
;; XXX: Disable test fails with Python 3.8:
;; https://github.com/gwik/geventhttpclient/issues/119
"-k" (string-append "not test_cookielib_compatibility"))
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)))