[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: gnu: python-requests-unixsocket: Fix tests.
From: |
guix-commits |
Subject: |
01/07: gnu: python-requests-unixsocket: Fix tests. |
Date: |
Mon, 25 Oct 2021 01:30:28 -0400 (EDT) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit 3eeae68af1f95448c8a4ebf98d7b49ccb86f273e
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Oct 24 20:49:46 2021 +0000
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.
---
gnu/packages/python-web.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 453ec47..7787003 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2559,9 +2559,13 @@ than Python’s urllib2 library.")
(substitute* "test-requirements.txt"
(("(.*)==(.*)" _ name) (string-append name "\n")))))
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ ;; Avoid a deprecation error.
+ (substitute* "pytest.ini"
+ (("--pep8") ""))
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv")))))))
(propagated-inputs
`(("python-pbr" ,python-pbr)
("python-requests" ,python-requests)
- branch core-updates-frozen updated (b67013c -> 2640da8), guix-commits, 2021/10/25
- 02/07: gnu: cutadapt: Regenerate Cython files., guix-commits, 2021/10/25
- 03/07: gnu: jellyfish: Remove Ruby bindings., guix-commits, 2021/10/25
- 04/07: gnu: sailfish: Do not attempt to unpack a directory., guix-commits, 2021/10/25
- 05/07: gnu: sailfish: Remove trailing #T., guix-commits, 2021/10/25
- 06/07: gnu: sailfish: Use TBB 2020., guix-commits, 2021/10/25
- 01/07: gnu: python-requests-unixsocket: Fix tests.,
guix-commits <=
- 07/07: gnu: java-cisd-args4j: Copy instead of unpacking input., guix-commits, 2021/10/25