summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-01-18 23:22:50 +0000
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:27 +0100
commitd9f147701af064f60bbdb463de4e74dfd079c396 (patch)
tree178ad9cbc38580227b72cd70fb6a5317577fec72
parent2bd8817578594fd169060b1bd009f4bb198b5065 (diff)
gnu: python-pytest-asyncio-0.26: Relax higher boundary of Pytest version.
* gnu/packages/check.scm (python-pytest-asyncio-0.26): [arguments] <test-flags>: Skip 4 tests, as it was in v1.0.0. <phases>: Add 'relax-requirements. Change-Id: If104b5b59759b4ea6c6fcb91aee62e4f933480a1
-rw-r--r--gnu/packages/check.scm22
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index bd1ec83107a..92205f7f482 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2527,6 +2527,8 @@ to make testing async code easier.")
(sha256
(base32 "1lz4h8y6m6hxnsl7kqh0rjxqp5q2wc2m5gd88371rikd7ari16vm"))))))
+;; It's the last 0.26.X version which is still required and has breaking
+;; changes with 1.X.X.
(define-public python-pytest-asyncio-0.26
(package
(inherit python-pytest-asyncio)
@@ -2536,7 +2538,25 @@ to make testing async code easier.")
(method url-fetch)
(uri (pypi-uri "pytest_asyncio" version))
(sha256
- (base32 "0bri1scs8whdrxb3jrv0ywiz20qb0mrll3kzkvriy928frljmpy4"))))))
+ (base32 "0bri1scs8whdrxb3jrv0ywiz20qb0mrll3kzkvriy928frljmpy4"))))
+ (arguments
+ (list
+ ;; tests: 202 passed, 4 deselected
+ #:test-flags
+ #~(list "-k" (string-join
+ (list "not test_strict_mode_ignores_unmarked_coroutine"
+ "test_strict_mode_ignores_unmarked_fixture"
+ "test_strict_mode_marked_test_unmarked_fixture_warning"
+ "test_strict_mode_marked_test_unmarked_autouse_fixture_warning")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "pyproject.toml"
+ ;; Pytest is in propagated inputs, remove higher boundary to
+ ;; avoid propagation of python-pytest-8.
+ ((">=8.2,<9") ">=8.2")))))))))
(define-public python-pytest-asyncio-0.21
(package