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] f45: Fix %check with pytest < 8.4
Date: Sun, 18 Oct 2026 23:46:54 GMT	[thread overview]
Message-ID: <179236721459.1.16264436680054529760.rpms-btrfs-backup-ng-fc76a80b8ebb@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/btrfs-backup-ng
            Branch : f45
            Commit : fc76a80b8ebbbf3b1b03208db240ee157122c747
            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/fc76a80b8ebbbf3b1b03208db240ee157122c747?branch=f45

            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-18 23:46 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=179236721459.1.16264436680054529760.rpms-btrfs-backup-ng-fc76a80b8ebb@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