gnu: python-requests-unixsocket: Fix tests.
* gnu/packages/python-web.scm (python-requests-unixsocket)[arguments]: Do not run tests with --pep8 option; only run tests when enabled.master
parent
b67013c8ca
commit
3eeae68af1
|
@ -2559,9 +2559,13 @@ than Python’s urllib2 library.")
|
||||||
(substitute* "test-requirements.txt"
|
(substitute* "test-requirements.txt"
|
||||||
(("(.*)==(.*)" _ name) (string-append name "\n")))))
|
(("(.*)==(.*)" _ name) (string-append name "\n")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
;; Avoid a deprecation error.
|
||||||
(invoke "pytest" "-vv"))))))
|
(substitute* "pytest.ini"
|
||||||
|
(("--pep8") ""))
|
||||||
|
(when tests?
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "pytest" "-vv")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-pbr" ,python-pbr)
|
`(("python-pbr" ,python-pbr)
|
||||||
("python-requests" ,python-requests)
|
("python-requests" ,python-requests)
|
||||||
|
|
Reference in New Issue