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 48747ae commit dc8db8bCopy full SHA for dc8db8b
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,
@@ -568,7 +567,7 @@ def test_value_indices03(xp):
568
567
assert list(vi.keys()) == list(trueKeys)
569
for k in [int(x) for x in trueKeys]:
570
trueNdx = xp.nonzero(a == k, **nnz_kwd)
571
- assert vi[k].shape[0] == trueNdx.shape[0]
+ assert len(vi[k]) == len(trueNdx)
572
for vik, true_vik in zip(vi[k], trueNdx):
573
xp_assert_equal(vik, true_vik)
574
0 commit comments