public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/thefuck] rawhide: Fix pytest 9 compatibility: marks applied to fixtures have no effect
Date: Mon, 10 Aug 2026 02:48:24 GMT [thread overview]
Message-ID: <178633010462.1.6467431622054133455.rpms-thefuck-6f9ba4726d56@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-10 2:48 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=178633010462.1.6467431622054133455.rpms-thefuck-6f9ba4726d56@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