@@ -298,7 +298,7 @@ def test_dtype_deprecation(self, xp):
298298 convolve (a , b )
299299
300300
301-
301+ @ pytest . mark . filterwarnings ( "ignore::FutureWarning:dask" )
302302@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
303303class TestConvolve2d :
304304
@@ -515,7 +515,7 @@ def test_large_array(self, xp):
515515 assert fails [0 ].size == 0
516516
517517
518-
518+ @ pytest . mark . filterwarnings ( "ignore::FutureWarning:dask" )
519519@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
520520class TestFFTConvolve :
521521
@@ -973,6 +973,10 @@ def gen_oa_shapes_eq(sizes):
973973
974974@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
975975@skip_xp_backends ("jax.numpy" , reason = "fails all around" )
976+ @skip_xp_backends ("dask.array" ,
977+ reason = "Gets converted to numpy at some point for some reason. "
978+ "Probably also suffers from boolean indexing issues"
979+ )
976980class TestOAConvolve :
977981 @pytest .mark .slow ()
978982 @pytest .mark .parametrize ('shape_a_0, shape_b_0' ,
@@ -2456,7 +2460,9 @@ def decimal(self, dt, xp):
24562460 dt = np .cdouble
24572461
24582462 # emulate np.finfo(dt).precision for complex64 and complex128
2459- prec = {64 : 15 , 32 : 6 }[xp .finfo (dt ).bits ]
2463+ # note: unwrapped dask has no finfo
2464+ xp_compat = array_namespace (xp .asarray (1 ))
2465+ prec = {64 : 15 , 32 : 6 }[xp_compat .finfo (dt ).bits ]
24602466 return int (2 * prec / 3 )
24612467
24622468 def _setup_rank1 (self , dt , mode , xp ):
@@ -2782,6 +2788,7 @@ def test_gust_scalars(self, xp):
27822788 xp_assert_close (y , expected )
27832789
27842790
2791+ @skip_xp_backends ("dask.array" , reason = "sosfiltfilt directly sets shape attributes on arrays which dask doesn't like" )
27852792@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
27862793class TestSOSFiltFilt (TestFiltFilt ):
27872794 filtfilt_kind = 'sos'
@@ -4014,10 +4021,12 @@ def test_nonnumeric_dtypes(func, xp):
40144021# (https://github.com/cupy/cupy/pull/8677)
40154022# 3. an issue with CuPy's __array__ not numpy-2.0 compatible
40164023@skip_xp_backends (cpu_only = True )
4024+ @skip_xp_backends ("dask.array" , reason = "sosfilt doesn't convert dask array to numpy before cython" )
40174025@pytest .mark .parametrize ('dt' , ['float32' , 'float64' , 'complex64' , 'complex128' ])
40184026class TestSOSFilt :
40194027
40204028 # The test_rank* tests are pulled from _TestLinearFilter
4029+
40214030 @skip_xp_backends ('jax.numpy' , reason = 'buffer array is read-only' )
40224031 def test_rank1 (self , dt , xp ):
40234032 dt = getattr (xp , dt )
@@ -4226,6 +4235,7 @@ def test_bad_zi_shape(self, dt, xp):
42264235 with pytest .raises (ValueError , match = 'Invalid zi shape' ):
42274236 sosfilt (sos , x , zi = zi , axis = 1 )
42284237
4238+
42294239 @skip_xp_backends ('jax.numpy' , reason = 'item assignment' )
42304240 def test_sosfilt_zi (self , dt , xp ):
42314241 dt = getattr (xp , dt )
@@ -4333,6 +4343,7 @@ def test_bp(self, xp):
43334343 with assert_raises (ValueError ):
43344344 detrend (data , type = "linear" , bp = 3 )
43354345
4346+ @pytest .mark .filterwarnings ("ignore::FutureWarning:dask" )
43364347 @pytest .mark .parametrize ('bp' , [np .array ([0 , 2 ]), [0 , 2 ]])
43374348 def test_detrend_array_bp (self , bp , xp ):
43384349 # regression test for https://github.com/scipy/scipy/issues/18675
0 commit comments