public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/thefuck] rawhide: Fix pytest 9 compatibility: marks applied to fixtures have no effect
@ 2026-08-10 2:48
0 siblings, 0 replies; only message in thread
From: @ 2026-08-10 2:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/thefuck
Branch : rawhide
Commit : 6f9ba4726d56506edb4eda24309345c2fd411a90
Author : Tomáš Hrnčiar <thrnciar@redhat.com>
Date : 2026-08-10T02:48:10+00:00
Stats : +30/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/thefuck/c/6f9ba4726d56506edb4eda24309345c2fd411a90?branch=rawhide
Log:
Fix pytest 9 compatibility: marks applied to fixtures have no effect
---
diff --git a/606ec7d.patch b/606ec7d.patch
new file mode 100644
index 0000000..febcfb8
--- /dev/null
+++ b/606ec7d.patch
@@ -0,0 +1,27 @@
+From 606ec7d539c255716c26399d63afd294b36e3923 Mon Sep 17 00:00:00 2001
+From: Stanislav Levin <slev@altlinux.org>
+Date: Tue, 24 Feb 2026 18:29:45 +0300
+Subject: [PATCH] tests: make tests compatible with Pytest 9
+
+https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
+
+> Applying a mark to a fixture function never had any effect, but it is a common user error.
+
+Fixes: https://github.com/nvbn/thefuck/issues/1549
+Signed-off-by: Stanislav Levin <slev@altlinux.org>
+---
+ tests/shells/conftest.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/shells/conftest.py b/tests/shells/conftest.py
+index 069673fcc..783442ae0 100644
+--- a/tests/shells/conftest.py
++++ b/tests/shells/conftest.py
+@@ -12,7 +12,6 @@ def isfile(mocker):
+
+
+ @pytest.fixture
+-@pytest.mark.usefixtures('isfile')
+ def history_lines(mocker):
+ def aux(lines):
+ mock = mocker.patch('io.open')
diff --git a/thefuck.spec b/thefuck.spec
index 28853ab..f6de24a 100644
--- a/thefuck.spec
+++ b/thefuck.spec
@@ -6,6 +6,9 @@ License: MIT
URL: https://github.com/nvbn/thefuck
Source0: https://github.com/nvbn/%{name}/archive/%{version}.tar.gz
+# Fix pytest 9 compatibility: marks applied to fixtures have no effect
+Patch3: https://github.com/nvbn/thefuck/commit/606ec7d.patch
+
# https://github.com/nvbn/thefuck/pull/1248
Patch0: thefuck-support-python-3.11.patch
# https://github.com/nvbn/thefuck/pull/1474
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 2:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 2:48 [rpms/thefuck] rawhide: Fix pytest 9 compatibility: marks applied to fixtures have no effect
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox