Skip to content

Commit aae2165

Browse files
committed
Don't generate 0d arrays for test_argmin/test_argmax
1 parent 44c80d8 commit aae2165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_tests/test_searching_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@given(
1616
x=xps.arrays(
1717
dtype=xps.numeric_dtypes(),
18-
shape=hh.shapes(min_side=1),
18+
shape=hh.shapes(min_dims=1, min_side=1),
1919
elements={"allow_nan": False},
2020
),
2121
data=st.data(),
@@ -47,7 +47,7 @@ def test_argmax(x, data):
4747
@given(
4848
x=xps.arrays(
4949
dtype=xps.numeric_dtypes(),
50-
shape=hh.shapes(min_side=1),
50+
shape=hh.shapes(min_dims=1, min_side=1),
5151
elements={"allow_nan": False},
5252
),
5353
data=st.data(),

0 commit comments

Comments
 (0)