Skip to content

Commit 974249c

Browse files
committed
MAINT/TST: signal: avoid nested asarrays in convolve2d tests
This to be forward compatible with data-apis/array-api#917 (planned for Array API spec 2025.12)
1 parent ba1f9b9 commit 974249c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scipy/signal/tests/test_signaltools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def test_consistency_convolve_funcs(self, xp):
485485
)
486486
xp_assert_close(
487487
xp.squeeze(
488-
signal.convolve2d(xp.asarray([a]), xp.asarray([b]), mode=mode),
488+
signal.convolve2d(a[None, :], b[None, :], mode=mode),
489489
axis=0
490490
),
491491
signal.convolve(a, b, mode=mode)

0 commit comments

Comments
 (0)