public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Berry <trismegustis@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/btrfs-backup-ng] f43: Fix %check with pytest < 8.4
Date: Mon, 19 Oct 2026 00:27:21 GMT	[thread overview]
Message-ID: <179236964131.1.1563328382097963874.rpms-btrfs-backup-ng-b6dcfc72915e@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/btrfs-backup-ng
            Branch : f43
            Commit : b6dcfc72915ece2cc01c4d8c7b356b05744e520b
            Author : Michael Berry <trismegustis@gmail.com>
            Date   : 2026-10-18T18:42:54-04:00
            Stats  : +19/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/btrfs-backup-ng/c/b6dcfc72915ece2cc01c4d8c7b356b05744e520b?branch=f43

            Log:
            Fix %check with pytest < 8.4

tests/conftest.py annotates a hook with pytest.TerminalReporter, which
pytest 8.3 (Fedora 43) does not export; on Python 3.14 that fails the
run at startup. Defer annotations until upstream ships the fix.

---
diff --git a/btrfs-backup-ng-pytest-8.3-terminalreporter.patch b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
new file mode 100644
index 0000000..c5b339e
--- /dev/null
+++ b/btrfs-backup-ng-pytest-8.3-terminalreporter.patch
@@ -0,0 +1,17 @@
+tests: do not evaluate pytest.TerminalReporter at hook registration
+
+pytest.TerminalReporter is public only from pytest 8.4 on. On Python 3.14
+pluggy evaluates hook annotations, so with pytest 8.3 (Fedora 43) the
+whole run fails at startup. Deferring annotations avoids the lookup.
+Drop when upstream ships the fix.
+
+--- a/tests/conftest.py	2026-10-18 18:12:05.696771100 -0400
++++ b/tests/conftest.py	2026-10-18 18:42:36.618523975 -0400
+@@ -1,5 +1,7 @@
+ """Pytest configuration and shared fixtures."""
+ 
++from __future__ import annotations
++
+ import functools
+ import logging
+ import os

diff --git a/btrfs-backup-ng.spec b/btrfs-backup-ng.spec
index ced124f..1b56abc 100644
--- a/btrfs-backup-ng.spec
+++ b/btrfs-backup-ng.spec
@@ -6,6 +6,8 @@ Summary:        Intelligent, feature-rich backups for btrfs
 License:        MIT
 URL:            https://github.com/berrym/btrfs-backup-ng
 Source:         %{pypi_source btrfs_backup_ng}
+# pytest < 8.4 (Fedora 43) has no public pytest.TerminalReporter; drop with upstream fix
+Patch:          btrfs-backup-ng-pytest-8.3-terminalreporter.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel

             reply	other threads:[~2026-10-19  0:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  0:27 Michael Berry [this message]
2026-10-19  4:41 [rpms/btrfs-backup-ng] f43: Fix %check with pytest < 8.4 Michael Berry

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=179236964131.1.1563328382097963874.rpms-btrfs-backup-ng-b6dcfc72915e@fedoraproject.org \
    --to=trismegustis@gmail.com \
    --cc=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