public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-pyvo] rawhide: Backport upstream patch needed for compatibility with pytest 9.1
Date: Mon, 06 Jul 2026 11:35:39 GMT [thread overview]
Message-ID: <178333773979.1.9528973020175590071.rpms-python-pyvo-a8bf97108232@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pyvo
Branch : rawhide
Commit : a8bf97108232699d67acb57f10d9912dd8ee6485
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date : 2026-07-01T11:47:52+02:00
Stats : +26/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pyvo/c/a8bf97108232699d67acb57f10d9912dd8ee6485?branch=rawhide
Log:
Backport upstream patch needed for compatibility with pytest 9.1
---
diff --git a/771.patch b/771.patch
new file mode 100644
index 0000000..0ab216b
--- /dev/null
+++ b/771.patch
@@ -0,0 +1,24 @@
+From 3de49aa66891e9817404a293d90dc415ead31557 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <tomas.hrnciar@me.com>
+Date: Wed, 1 Jul 2026 11:46:34 +0200
+Subject: [PATCH] Fix pytest 9.1 compatibility
+
+Use @classmethod for class-scoped fixture in TestSQLLiterals to fix PytestRemovedIn10Warning promoted to error by filterwarnings = error.
+---
+ pyvo/registry/tests/test_rtcons.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/pyvo/registry/tests/test_rtcons.py b/pyvo/registry/tests/test_rtcons.py
+index 605c69b4..dc342e4d 100644
+--- a/pyvo/registry/tests/test_rtcons.py
++++ b/pyvo/registry/tests/test_rtcons.py
+@@ -48,7 +48,8 @@ def test_no_search_condition(self):
+
+ class TestSQLLiterals:
+ @pytest.fixture(scope="class", autouse=True)
+- def literals(self):
++ @classmethod
++ def literals(cls):
+ class _WithFillers(rtcons.Constraint):
+ _fillers = {
+ "aString": "some harmless stuff",
diff --git a/python-pyvo.spec b/python-pyvo.spec
index a312e95..9501668 100644
--- a/python-pyvo.spec
+++ b/python-pyvo.spec
@@ -20,6 +20,7 @@ Summary: %{sum}
License: BSD-3-Clause
URL: https://github.com/astropy/%{srcname}
Source: %{pypi_source %{srcname}}
+Patch: https://github.com/astropy/pyvo/pull/771.patch
BuildArch: noarch
@@ -40,7 +41,7 @@ Requires: astropy-tools
%{desc}
%prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -e %{toxenv}-test
reply other threads:[~2026-07-06 11: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=178333773979.1.9528973020175590071.rpms-python-pyvo-a8bf97108232@fedoraproject.org \
--to=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