mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 19:49:25 -05:00
gnu: python-pyzmq: Use pytest to run the test suite.
* gnu/packages/python-xyz.scm (python-pyzmq) [arguments]: Precise comments regarding #:tests?. Override check phase.
This commit is contained in:
parent
8f0698dde3
commit
ee7b06e212
1 changed files with 7 additions and 4 deletions
|
@ -11847,16 +11847,19 @@ (define-public python-pyzmq
|
|||
;; FIXME: The test_draft.TestDraftSockets test fails with:
|
||||
;; zmq.error.Again: Resource temporarily unavailable
|
||||
(delete-file "zmq/tests/test_draft.py")
|
||||
;; These tests fail for unknown reasons (see:
|
||||
;; These tests appear to depend on a working name resolver (see:
|
||||
;; https://github.com/zeromq/pyzmq/issues/1853).
|
||||
(delete-file "zmq/tests/test_auth.py")
|
||||
(delete-file "zmq/tests/test_zmqstream.py")))
|
||||
(add-before 'check 'build-extensions
|
||||
(lambda _
|
||||
;; Cython extensions have to be built before running the tests.
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||
(inputs
|
||||
(list zeromq))
|
||||
(invoke "python" "setup.py" "build_ext" "--inplace")))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-vv")))))))
|
||||
(inputs (list zeromq))
|
||||
(native-inputs
|
||||
(list pkg-config
|
||||
python-cython
|
||||
|
|
Loading…
Reference in a new issue