public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyvo] rawhide: Backport upstream patch needed for compatibility with pytest 9.1
@ 2026-07-06 11:35
0 siblings, 0 replies; only message in thread
From: @ 2026-07-06 11:35 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-06 11:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-06 11:35 [rpms/python-pyvo] rawhide: Backport upstream patch needed for compatibility with pytest 9.1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox