public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-flask-caching] rawhide: Backport upstream patch needed for compatibility with pytest 9.1
Date: Mon, 29 Jun 2026 12:15:01 GMT [thread overview]
Message-ID: <178273530141.1.3750145791632344033.rpms-python-flask-caching-f281d10138ea@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-29 12:15 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=178273530141.1.3750145791632344033.rpms-python-flask-caching-f281d10138ea@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