[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: python-pyzmq: Use pytest to run the test suite.
From: |
guix-commits |
Subject: |
01/02: gnu: python-pyzmq: Use pytest to run the test suite. |
Date: |
Wed, 14 Jun 2023 12:56:48 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit ee7b06e2124337e4bfd253f1678615c6790df8bf
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Jun 14 12:38:01 2023 -0400
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.
---
gnu/packages/python-xyz.scm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index afd3100a6b..2bb0dc5a70 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11847,16 +11847,19 @@ applications.")
;; 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