public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-flask-caching] rawhide: Backport upstream patch needed for compatibility with pytest 9.1
@ 2026-06-29 12:15 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-29 12:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-flask-caching
Branch : rawhide
Commit : f281d10138eae0bdaaef8d349221a6ee53cfa9f7
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date   : 2026-06-29T11:57:14+02:00
Stats  : +49/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-flask-caching/c/f281d10138eae0bdaaef8d349221a6ee53cfa9f7?branch=rawhide

Log:
Backport upstream patch needed for compatibility with pytest 9.1

---
diff --git a/652.patch b/652.patch
new file mode 100644
index 0000000..d7916cc
--- /dev/null
+++ b/652.patch
@@ -0,0 +1,46 @@
+From f24171d864fd4594a81f8eb9b4d9f7c4ce463f32 Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Mon, 29 Jun 2026 00:18:03 +0100
+Subject: [PATCH] Don't define class-scoped fixtures as instance methods
+
+This is deprecated as of pytest 9.1; see
+https://docs.pytest.org/en/stable/deprecations.html#class-scoped-fixture-as-instance-method.
+---
+ CHANGES.rst                 | 1 +
+ tests/test_backend_cache.py | 9 ++++++---
+ 2 files changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/tests/test_backend_cache.py b/tests/test_backend_cache.py
+index 840990c2..ccc168cb 100644
+--- a/tests/test_backend_cache.py
++++ b/tests/test_backend_cache.py
+@@ -169,7 +169,8 @@ def gen_key_prefix(self):
+         return "werkzeug-test-case:"
+ 
+     @pytest.fixture(scope="class", autouse=True)
+-    def requirements(self, redis_server):
++    @classmethod
++    def requirements(cls, redis_server):
+         pass
+ 
+     @pytest.fixture(params=(None, False, True, gen_key_prefix))
+@@ -239,7 +240,8 @@ class TestMemcachedCache(GenericCacheTests):
+     _guaranteed_deletes = False
+ 
+     @pytest.fixture(scope="class", autouse=True)
+-    def requirements(self, memcache_server):
++    @classmethod
++    def requirements(cls, memcache_server):
+         pass
+ 
+     @pytest.fixture
+@@ -268,7 +270,8 @@ def test_timeouts(self, c):
+ 
+ class TestNullCache(CacheTestsBase):
+     @pytest.fixture(scope="class", autouse=True)
+-    def make_cache(self):
++    @classmethod
++    def make_cache(cls):
+         return backends.NullCache
+ 
+     def test_has(self, c):

diff --git a/python-flask-caching.spec b/python-flask-caching.spec
index 2792e32..7994df6 100644
--- a/python-flask-caching.spec
+++ b/python-flask-caching.spec
@@ -11,6 +11,9 @@ License:        BSD-3-Clause
 URL:            https://github.com/sh4nks/flask-caching
 Source0:        https://github.com/sh4nks/%{srcname}/archive/v%{version}/%{srcname}-v%{version}.tar.gz
 
+# Compatibility with pytest 9.1
+Patch:          https://github.com/pallets-eco/flask-caching/pull/652.patch
+
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:15 [rpms/python-flask-caching] 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