public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pynwb] rawhide: Patch a test for Python 3.15; Fixes RHBZ#2453852
Date: Thu, 25 Jun 2026 10:57:58 GMT	[thread overview]
Message-ID: <178238507874.1.2490022233058730663.rpms-python-pynwb-bb469f612dd6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-pynwb
Branch : rawhide
Commit : bb469f612dd6ae92083acf0bcfc78129481aef19
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-25T11:43:12+01:00
Stats  : +48/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pynwb/c/bb469f612dd6ae92083acf0bcfc78129481aef19?branch=rawhide

Log:
Patch a test for Python 3.15; Fixes RHBZ#2453852

---
diff --git a/2207.patch b/2207.patch
new file mode 100644
index 0000000..5243047
--- /dev/null
+++ b/2207.patch
@@ -0,0 +1,38 @@
+From 329c6cc2869751b932ca0fba201034e0cba913bf Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Thu, 25 Jun 2026 11:23:41 +0100
+Subject: [PATCH] =?UTF-8?q?In=20test=5Fimport=5Fstructure,=20don=E2=80=99t?=
+ =?UTF-8?q?=20check=20dunder=20names?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Don’t check for names of the form `__foo__` in the module, except for
+`__version__` since it’s explicitly assigned. These are generally
+subject to change across Python interpreter versions. In particular,
+`__cached__` is no longer present in Python 3.15; see
+https://docs.python.org/3.14/reference/datamodel.html#module.__cached__.
+---
+ tests/back_compat/test_import_structure.py | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/tests/back_compat/test_import_structure.py b/tests/back_compat/test_import_structure.py
+index 86eabac72..709c5af83 100644
+--- a/tests/back_compat/test_import_structure.py
++++ b/tests/back_compat/test_import_structure.py
+@@ -30,15 +30,6 @@ def test_outer_import_structure(self):
+             "TimeSeries",
+             "TypeMap",
+             "_HDF5IO",
+-            "__builtins__",
+-            "__cached__",
+-            "__doc__",
+-            "__file__",
+-            "__loader__",
+-            "__name__",
+-            "__package__",
+-            "__path__",
+-            "__spec__",
+             "__version__",
+             "_due",
+             "_version",

diff --git a/python-pynwb.spec b/python-pynwb.spec
index 1d6e311..39c5bde 100644
--- a/python-pynwb.spec
+++ b/python-pynwb.spec
@@ -40,6 +40,16 @@ Source0:        %{pypi_source pynwb}
 # Man page hand-written for Fedora in groff_man(7) format from --help output
 Source1:        pynwb-validate.1
 
+# In test_import_structure, don’t check dunder names
+# https://github.com/NeurodataWithoutBorders/pynwb/pull/2207
+#
+# Fixes:
+#
+# python-pynwb fails to build with Python 3.15: test_outer_import_structure:
+# AssertionError: '__cached__' not found in ...
+# https://bugzilla.redhat.com/show_bug.cgi?id=2453852
+Patch:          %{url}/pull/2207.patch
+
 BuildArch:      noarch
 
 %global desc %{expand:

                 reply	other threads:[~2026-06-25 10:57 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=178238507874.1.2490022233058730663.rpms-python-pynwb-bb469f612dd6@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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