[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: python-warcio: Fix test failure.
From: |
guix-commits |
Subject: |
04/07: gnu: python-warcio: Fix test failure. |
Date: |
Mon, 14 Feb 2022 18:25:05 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit b5f7140151f5efd2c9ba02f45cdba48ee5206803
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Feb 14 23:34:16 2022 +0100
gnu: python-warcio: Fix test failure.
* gnu/packages/python-web.scm (python-warcio)[arguments]: Invoke pytest
directly instead of going through setup.py. Skip three more tests.
---
gnu/packages/python-web.scm | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8c638ce439..c5b27f5f51 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5254,16 +5254,22 @@ them to a designated prefix.")
"11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'skip-problematic-tests
- (lambda _
- ;; These tests fail due to networking requirements.
- (substitute* "setup.py"
- (("pytest.main\\(\\[" all)
- (string-append all "'-k', '"
- (string-append "not test_post_chunked and "
- "not test_remote") "'"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv"
+ ;; These tests fail due to networking requirements.
+ "-k" (format #f "not ~a"
+ (string-join
+ '("test_post_chunked"
+ "test_remote"
+ "test_capture_http_proxy"
+ "test_capture_https_proxy"
+
"test_capture_https_proxy_same_session")
+ " and not ")))))))))
(native-inputs
;; These inputs are required for the test suite.
(list python-httpbin python-pytest-cov python-requests
- branch master updated (208c607854 -> b5d472ef5d), guix-commits, 2022/02/14
- 05/07: gnu: python-pyelftools: Update to 0.28., guix-commits, 2022/02/14
- 03/07: gnu: python-drmaa: Remove unused input., guix-commits, 2022/02/14
- 04/07: gnu: python-warcio: Fix test failure.,
guix-commits <=
- 06/07: gnu: python-argh: Fix test failure., guix-commits, 2022/02/14
- 01/07: gnu: python-psutil: Update to 5.9.0., guix-commits, 2022/02/14
- 07/07: gnu: python-gffutils: Update to 0.10.1., guix-commits, 2022/02/14
- 02/07: gnu: python-drmaa: Fix build failure., guix-commits, 2022/02/14