public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pytest-console-scripts] epel9: Adapt upstream tests to EL9 pytest v6
@ 2026-06-25 7:35 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-06-25 7:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pytest-console-scripts
Branch : epel9
Commit : 28e7d126bf318a950af4bfc4e37577faf35df625
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-06-25T09:33:09+02:00
Stats : +8/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pytest-console-scripts/c/28e7d126bf318a950af4bfc4e37577faf35df625?branch=epel9
Log:
Adapt upstream tests to EL9 pytest v6
- Resolves: rhbz#2492166
EL9 ships pytest 6.2.2, which still requires expected_warning as a
positional arg to pytest.warns(); upstream tests assume pytest >=7
https://github.com/kvas-it/pytest-console-scripts/issues/91
---
diff --git a/python-pytest-console-scripts.spec b/python-pytest-console-scripts.spec
index 415f2c9..8526b60 100644
--- a/python-pytest-console-scripts.spec
+++ b/python-pytest-console-scripts.spec
@@ -29,6 +29,14 @@ Requires: python3-setuptools
%prep
%autosetup -p1 -n pytest-console-scripts-%{version}
+# EL9 ships pytest 6.2.2, which still requires expected_warning as a
+# positional arg to pytest.warns(); upstream tests assume pytest >=7
+# https://github.com/kvas-it/pytest-console-scripts/issues/91
+# pytest-console-scripts still claims support for pytest v4.
+sed -i \
+ -e 's/pytest\.warns(match=/pytest.warns(Warning, match=/' \
+ tests/test_run_scripts.py
+
%generate_buildrequires
%pyproject_buildrequires -t
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-25 7:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25 7:35 [rpms/python-pytest-console-scripts] epel9: Adapt upstream tests to EL9 pytest v6 Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox