Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1242ade

Browse files
committed
MAINT, TST: NumPy stride deprecation shim
* This patch allows the SciPy testsuite to pass against NumPy `main` branch, after numpy/numpy#28925 was merged in the last day or so.
1 parent ecdcf48 commit 1242ade

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
@@ -1295,7 +1295,7 @@ def test_odd_strides(self, xp):
12951295
# us into wrong memory if used (but it does not need to be used)
12961296
dummy = xp.arange(10, dtype=xp.float64)
12971297
a = dummy[5:6]
1298-
a.strides = 16
1298+
a = xp.lib.stride_tricks.as_strided(a)
12991299
xp_assert_close(signal.medfilt(a, 1), xp.asarray([5.]))
13001300

13011301
@skip_xp_backends(

0 commit comments

Comments
 (0)