public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pytest-console-scripts] epel9: Adapt upstream tests to EL9 pytest v6
Date: Thu, 25 Jun 2026 07:35:44 GMT [thread overview]
Message-ID: <178237294434.1.2670063780813412864.rpms-python-pytest-console-scripts-28e7d126bf31@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-25 7:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178237294434.1.2670063780813412864.rpms-python-pytest-console-scripts-28e7d126bf31@fedoraproject.org \
--to=steve.traylen@cern.ch \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox