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.
1 parent 7d217eb commit b377048Copy full SHA for b377048
scipy/ndimage/tests/test_measurements.py
@@ -5,7 +5,6 @@
5
from numpy.testing import suppress_warnings
6
7
from scipy._lib._array_api import (
8
- is_jax,
9
is_torch,
10
array_namespace,
11
xp_assert_equal,
@@ -569,7 +568,7 @@ def test_value_indices03(xp):
569
568
assert list(vi.keys()) == list(trueKeys)
570
for k in [int(x) for x in trueKeys]:
571
trueNdx = xp.nonzero(a == k, **nnz_kwd)
572
- assert vi[k].shape[0] == trueNdx.shape[0]
+ assert len(vi[k]) == len(trueNdx)
573
for vik, true_vik in zip(vi[k], trueNdx):
574
xp_assert_equal(vik, true_vik)
575
0 commit comments