Skip to content

Commit 12ac3f7

Browse files
committed
Simplify shape strategy for test_nonzero_zerodim_error
1 parent 176684c commit 12ac3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_searching_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_argmin(x, data):
8787
ph.assert_scalar_equals("argmin", type_=int, idx=out_idx, out=min_i, expected=expected)
8888

8989

90-
@given(xps.arrays(dtype=xps.scalar_dtypes(), shape=hh.shapes(min_dims=0, max_dims=0)))
90+
@given(xps.arrays(dtype=xps.scalar_dtypes(), shape=()))
9191
def test_nonzero_zerodim_error(x):
9292
with pytest.raises(Exception):
9393
xp.nonzero(x)

0 commit comments

Comments
 (0)