Package: cython / 3.0.11+dfsg-2

numpy-2.0.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: da-woods <dw-git@d-woods.co.uk>
Date: Wed, 25 Dec 2024 12:12:11 +0000
Subject: Backport ufunc Numpy2 fix

Origin: upstream, https://github.com/cython/cython/commit/852286242ee46cc16f0a6efef7eb40a5ab3c57d5
Bug-Debian: https://bugs.debian.org/1095084
Last-Update: 2025-02-09
---
 tests/run/ufunc.pyx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/run/ufunc.pyx b/tests/run/ufunc.pyx
index f489a07..b1895ee 100644
--- a/tests/run/ufunc.pyx
+++ b/tests/run/ufunc.pyx
@@ -124,8 +124,8 @@ def test_plus_one_twice():
     Test a function returning a fused ctuple
     >>> plus_one_twice(int_arr_1d)  # doctest: +ELLIPSIS
     (array([ 1,  5,  9, 13, 17]...), array([ 1,  5,  9, 13, 17]...))
-    >>> plus_one_twice(1.j)
-    ((1+1j), (1+1j))
+    >>> print(*plus_one_twice(1.j))
+    (1+1j) (1+1j)
 
     2D variant skipped because it's hard to sensible doctest
     """