guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 9b624f6c616cc89a3fa9850496d0792f8976cae9
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 5 13:48:39 2026 +0000
gnu: python-parfive: Fix tests.
* gnu/packages/python-web.scm (python-parfive):
[arguments] <test-flags>: Rework skipped tests.
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-web.scm | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index bc1b7cb6d44..214e57fb25d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -7896,13 +7896,19 @@ other HTTP libraries.")
(arguments
(list
#:test-flags
- ;; Disable tests requiring network access.
- #~(list "-k" (string-join
- (list "not test_ftp"
- "test_ftp_http"
- "test_ftp_pasv_command"
- "test_problematic_http_urls")
- " and not "))))
+ ;; Compatibility issue with aiohttp, see:
+ ;; <https://github.com/Cadair/parfive/pull/197>.
+ #~(map (lambda (test) (string-append "--deselect=parfive/tests/" test))
+ (list"test_downloader.py::test_retrieve_some_content"
+ "test_downloader.py::test_retry"
+ "test_downloader.py::test_explicit_checksum"
+ "test_downloader_multipart.py::test_multipart_with_error"
+ "test_main.py::test_run_cli_success"
+ ;; Network access is required.
+ "test_downloader.py::test_ftp"
+ "test_downloader.py::test_ftp_http"
+ "test_downloader.py::test_ftp_callback_success"
+ "test_downloader.py::test_problematic_http_urls"))))
(native-inputs
(list python-aiofiles
python-pytest