public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zmq] rawhide: Fix TestFrame.test_buffer_numpy on numpy 2.5
@ 2026-07-18  6:02 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-18  6:02 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-zmq
Branch : rawhide
Commit : 756ad907dbdee22b5fe950a172a727304938e821
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-18T07:02:06+01:00
Stats  : +28/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-zmq/c/756ad907dbdee22b5fe950a172a727304938e821?branch=rawhide

Log:
Fix TestFrame.test_buffer_numpy on numpy 2.5

---
diff --git a/2202.patch b/2202.patch
new file mode 100644
index 0000000..5ec4518
--- /dev/null
+++ b/2202.patch
@@ -0,0 +1,24 @@
+From 3e29bae36e71cc6ed60566a5681b58f91d9d2b20 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sat, 18 Jul 2026 06:55:47 +0100
+Subject: [PATCH] Fix TestFrame.test_buffer_numpy on numpy 2.5
+
+https://numpy.org/doc/stable/release/2.5.0-notes.html#expired-deprecations:
+Data type alias `a` was removed in favor of `S`. (deprecated since 2.0)
+---
+ tests/test_message.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_message.py b/tests/test_message.py
+index 77de12cb0..1b77100cc 100644
+--- a/tests/test_message.py
++++ b/tests/test_message.py
+@@ -341,7 +341,7 @@ def test_buffer_numpy(self):
+                 B = numpy.frombuffer(msg, A.dtype).reshape(A.shape)
+                 assert_array_equal(A, B)
+ 
+-            A = numpy.empty(shape, dtype=[('a', int), ('b', float), ('c', 'a32')])
++            A = numpy.empty(shape, dtype=[('a', int), ('b', float), ('c', 'S32')])
+             A['a'] = 1024
+             A['b'] = 1e9
+             A['c'] = 'hello there'

diff --git a/python-zmq.spec b/python-zmq.spec
index 4b3901c..91b551e 100644
--- a/python-zmq.spec
+++ b/python-zmq.spec
@@ -45,6 +45,10 @@ URL:            https://zeromq.org/languages/python/
 %global forgeurl https://github.com/zeromq/pyzmq
 Source:         %{forgeurl}/archive/v%{version}/pyzmq-%{version}.tar.gz
 
+# Fix TestFrame.test_buffer_numpy on numpy 2.5
+# https://github.com/zeromq/pyzmq/pull/2202
+Patch:          %{forgeurl}/pull/2202.patch
+
 BuildSystem:    pyproject
 BuildOption(generate_buildrequires): test-requirements.txt
 # https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-18  6:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-18  6:02 [rpms/python-zmq] rawhide: Fix TestFrame.test_buffer_numpy on numpy 2.5 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox