File: 0012-Skip-test_arbitrary_number_of_ops_error-on-32-bit-ar.patch

package info (click to toggle)
numpy 1%3A2.3.5%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 86,232 kB
  • sloc: python: 255,841; asm: 232,483; ansic: 212,578; cpp: 157,469; f90: 1,575; sh: 845; fortran: 567; makefile: 431; sed: 139; xml: 109; java: 97; perl: 82; cs: 62; javascript: 53; objc: 33; lex: 13; yacc: 9
file content (31 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 20 Nov 2025 09:33:25 +0100
Subject: Skip test_arbitrary_number_of_ops_error on 32-bit architectures

Bug-Debian: https://bugs.debian.org/1121005
Bug: https://github.com/numpy/numpy/issues/30257#issuecomment-3552332646
Forwarded: yes
---
 numpy/_core/tests/test_nditer.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/numpy/_core/tests/test_nditer.py b/numpy/_core/tests/test_nditer.py
index ec28e48..e0b3265 100644
--- a/numpy/_core/tests/test_nditer.py
+++ b/numpy/_core/tests/test_nditer.py
@@ -10,6 +10,7 @@ import numpy._core.umath as ncu
 from numpy import all, arange, array, nditer
 from numpy.testing import (
     HAS_REFCOUNT,
+    IS_64BIT,
     IS_WASM,
     assert_,
     assert_array_equal,
@@ -3404,6 +3405,7 @@ def test_arbitrary_number_of_ops_nested():
 
 
 @pytest.mark.slow
+@pytest.mark.skipif(not IS_64BIT, reason="test requires 64-bit system")
 @requires_memory(9 * np.iinfo(np.intc).max)
 def test_arbitrary_number_of_ops_error():
     # A different error may happen for more than integer operands, but that