guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit f4c90e5ecbf47302c6de88c56cb0a8ec47d6d44d
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Feb 8 12:55:09 2026 +0100

    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 <[email protected]>
---
 gnu/packages/python-web.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6498aeba0a..36c6d01d4a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2123,7 +2123,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.
@@ -2160,12 +2163,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

Reply via email to