8000 TST: Fixed an `int`-related failure on 32-bit systems · mattip/numpy@c5358b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5358b7

Browse files
author
Bas van Beek
committed
TST: Fixed an int-related failure on 32-bit systems
1 parent 5c07541 commit c5358b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numpy/typing/tests/data/pass/ndarray_misc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ class SubClass(np.ndarray): ...
4545
A.argsort()
4646

4747
i8.choose([()])
48-
C.choose([[0, 1, 2], [3, 4, 5], [6, 7, 8]])
49-
C.choose([[0, 1, 2], [3, 4, 5], [6, 7, 8]], out=D)
48+
_choices = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]], dtype=np.int64)
49+
C.choose(_choices)
50+
C.choose(_choices, out=D)
5051

5152
i8.clip(1)
5253
A.clip(1)

0 commit comments

Comments
 (0)
0