Codebase list python-numpysane / c25aac0
removed applied patch Dima Kogan 1 year, 3 months ago
2 changed file(s) with 1 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
+0
-36
debian/patches/0001-test-suite-passes-on-32-bit-platforms.patch less more
0 From 3e1bc8cc8c20b8ded066a7860324d2d30260fd86 Mon Sep 17 00:00:00 2001
1 From: Dima Kogan <dima@secretsauce.net>
2 Date: Sun, 2 Jan 2022 23:42:07 -0800
3 Subject: [PATCH] test suite passes on 32-bit platforms
4 Forwarded: https://github.com/dkogan/numpysane/commit/3e1bc8cc8c20b8ded066a7860324d2d30260fd86
5
6 I was assuming that "int" was a 64-bit type by mistake
7 ---
8 test/test-c-broadcasting.py | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/test/test-c-broadcasting.py b/test/test-c-broadcasting.py
12 index 5958c68..4db1c1c 100755
13 --- a/test/test-c-broadcasting.py
14 +++ b/test/test-c-broadcasting.py
15 @@ -445,14 +445,14 @@ def test_innerouter():
16 def test_sorted_indices():
17 x64 = np.array((1., 5., 3, 2.5, 3.5, 2.9), dtype=float)
18 x32 = np.array((1., 5., 3, 2.5, 3.5, 2.9), dtype=np.float32)
19 - iref = np.array((0, 3, 5, 2, 4, 1), dtype=int)
20 + iref = np.array((0, 3, 5, 2, 4, 1), dtype=np.int64)
21
22 - confirm_raises(lambda: testlib.sorted_indices(np.arange(5, dtype=int)))
23 + confirm_raises(lambda: testlib.sorted_indices(np.arange(5, dtype=np.int64)))
24 confirm_does_not_raise(lambda: testlib.sorted_indices(np.arange(5, dtype=np.float32)))
25 confirm_does_not_raise(lambda: testlib.sorted_indices(np.arange(5, dtype=np.float32),
26 out=np.arange(5, dtype=np.int32)))
27 confirm_raises(lambda: testlib.sorted_indices(np.arange(5, dtype=np.float32),
28 - out=np.arange(5, dtype=int)))
29 + out=np.arange(5, dtype=np.int64)))
30 confirm_raises(lambda: testlib.sorted_indices(np.arange(5, dtype=np.float32),
31 out=np.arange(5, dtype=float)))
32 assertResult_inoutplace( iref,
33 --
34 2.34.1
35
0 0001-test-suite-passes-on-32-bit-platforms.patch
10
1