From 27af7fb2fe46a8fdc5e7299038e22b5e1f2f3a98 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 8 Feb 2026 12:55:09 +0100 Subject: gnu: python-aiohttp: Improve python-pytest-cov removal. * gnu/packages/python-web.scm (python-aiohttp): [arguments] <#:phases>: Drop phase 'fix-pytest-config. <#:test-flags>: Adapt accordingly. Change-Id: I2f2710fd72b2d9c94da4716863c213a8906fe05e Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f4340783e29..8adf2c88a78 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2326,7 +2326,10 @@ for adding, removing and dropping callbacks.") ;; tests: 3045 passed, 32 skipped, 29 xfailed, 2 subtests passed #:test-flags '(list + "-o" "addopts=''" ; Avoid -p pytest_cov. + "-m" "not dev_mode" "--numprocesses" (number->string (parallel-job-count)) + "--ignore=aiohttp/test_utils.py" ;; This tests requires the 'proxy.py' module, not yet packaged. "--ignore=tests/test_proxy_functional.py" ;; These tests need brotli. @@ -2363,12 +2366,6 @@ for adding, removing and dropping callbacks.") "and not test_add_static_path_resolution")) #:phases '(modify-phases %standard-phases - (add-after 'unpack 'fix-pytest-config - (lambda _ - (substitute* "setup.cfg" - (("--numprocesses=auto") "") - (("-p pytest_cov") "") - (("--cov.*") "")))) (add-after 'unpack 'fix-tests (lambda _ ;; Make sure the timestamp of this file is > 1990, because a few -- cgit v1.2.3