Skip to content

Commit 6fb104a

Browse files
committed
Use portable indexing in test_take
1 parent 0bceae1 commit 6fb104a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_indexing_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_take(x, data):
4949
f_axis_idx = sh.fmt_idx("x", axis_idx)
5050
for i in _indices:
5151
f_take_idx = sh.fmt_idx(f_axis_idx, i)
52-
indexed_x = x[axis_idx][i]
52+
indexed_x = x[axis_idx][i, ...]
5353
for at_idx in sh.ndindex(indexed_x.shape):
5454
out_idx = next(out_indices)
5555
ph.assert_0d_equals(

0 commit comments

Comments
 (0)