diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-02-08 12:55:09 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:34 +0100 |
| commit | 27af7fb2fe46a8fdc5e7299038e22b5e1f2f3a98 (patch) | |
| tree | 7f8ab36c9f43a7fa257d1227c183cc153bf2d334 /gnu/packages/python-web.scm | |
| parent | 8f85f87f29be5f4bffc6d84b3c6c7843be613e0c (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 9 |
1 files changed, 3 insertions, 6 deletions
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.") | |||
| 2326 | ;; tests: 3045 passed, 32 skipped, 29 xfailed, 2 subtests passed | 2326 | ;; tests: 3045 passed, 32 skipped, 29 xfailed, 2 subtests passed |
| 2327 | #:test-flags | 2327 | #:test-flags |
| 2328 | '(list | 2328 | '(list |
| 2329 | "-o" "addopts=''" ; Avoid -p pytest_cov. | ||
| 2330 | "-m" "not dev_mode" | ||
| 2329 | "--numprocesses" (number->string (parallel-job-count)) | 2331 | "--numprocesses" (number->string (parallel-job-count)) |
| 2332 | "--ignore=aiohttp/test_utils.py" | ||
| 2330 | ;; This tests requires the 'proxy.py' module, not yet packaged. | 2333 | ;; This tests requires the 'proxy.py' module, not yet packaged. |
| 2331 | "--ignore=tests/test_proxy_functional.py" | 2334 | "--ignore=tests/test_proxy_functional.py" |
| 2332 | ;; These tests need brotli. | 2335 | ;; These tests need brotli. |
| @@ -2363,12 +2366,6 @@ for adding, removing and dropping callbacks.") | |||
| 2363 | "and not test_add_static_path_resolution")) | 2366 | "and not test_add_static_path_resolution")) |
| 2364 | #:phases | 2367 | #:phases |
| 2365 | '(modify-phases %standard-phases | 2368 | '(modify-phases %standard-phases |
| 2366 | (add-after 'unpack 'fix-pytest-config | ||
| 2367 | (lambda _ | ||
| 2368 | (substitute* "setup.cfg" | ||
| 2369 | (("--numprocesses=auto") "") | ||
| 2370 | (("-p pytest_cov") "") | ||
| 2371 | (("--cov.*") "")))) | ||
| 2372 | (add-after 'unpack 'fix-tests | 2369 | (add-after 'unpack 'fix-tests |
| 2373 | (lambda _ | 2370 | (lambda _ |
| 2374 | ;; Make sure the timestamp of this file is > 1990, because a few | 2371 | ;; Make sure the timestamp of this file is > 1990, because a few |
