We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shape
test_nonzero_zerodim_error
1 parent 176684c commit 12ac3f7Copy full SHA for 12ac3f7
array_api_tests/test_searching_functions.py
@@ -87,7 +87,7 @@ def test_argmin(x, data):
87
ph.assert_scalar_equals("argmin", type_=int, idx=out_idx, out=min_i, expected=expected)
88
89
90
-@given(xps.arrays(dtype=xps.scalar_dtypes(), shape=hh.shapes(min_dims=0, max_dims=0)))
+@given(xps.arrays(dtype=xps.scalar_dtypes(), shape=()))
91
def test_nonzero_zerodim_error(x):
92
with pytest.raises(Exception):
93
xp.nonzero(x)
0 commit comments