@@ -289,7 +289,7 @@ def test_dtype_deprecation(self, xp):
289289 convolve (a , b )
290290
291291
292-
292+ @ pytest . mark . filterwarnings ( "ignore::FutureWarning:dask" )
293293@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
294294class TestConvolve2d :
295295
@@ -506,7 +506,7 @@ def test_large_array(self, xp):
506506 assert fails [0 ].size == 0
507507
508508
509-
509+ @ pytest . mark . filterwarnings ( "ignore::FutureWarning:dask" )
510510@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
511511class TestFFTConvolve :
512512
@@ -960,6 +960,10 @@ def gen_oa_shapes_eq(sizes):
960960
961961@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
962962@skip_xp_backends ("jax.numpy" , reason = "fails all around" )
963+ @skip_xp_backends ("dask.array" ,
964+ reason = "Gets converted to numpy at some point for some reason. "
965+ "Probably also suffers from boolean indexing issues"
966+ )
963967class TestOAConvolve :
964968 @pytest .mark .slow ()
965969 @pytest .mark .parametrize ('shape_a_0, shape_b_0' ,
@@ -2440,7 +2444,9 @@ def decimal(self, dt, xp):
24402444 dt = np .cdouble
24412445
24422446 # emulate np.finfo(dt).precision for complex64 and complex128
2443- prec = {64 : 15 , 32 : 6 }[xp .finfo (dt ).bits ]
2447+ # note: unwrapped dask has no finfo
2448+ xp_compat = array_namespace (xp .asarray (1 ))
2449+ prec = {64 : 15 , 32 : 6 }[xp_compat .finfo (dt ).bits ]
24442450 return int (2 * prec / 3 )
24452451
24462452 def _setup_rank1 (self , dt , mode , xp ):
@@ -2766,6 +2772,7 @@ def test_gust_scalars(self, xp):
27662772 xp_assert_close (y , expected )
27672773
27682774
2775+ @skip_xp_backends ("dask.array" , reason = "sosfiltfilt directly sets shape attributes on arrays which dask doesn't like" )
27692776@skip_xp_backends (cpu_only = True , exceptions = ['cupy' ])
27702777class TestSOSFiltFilt (TestFiltFilt ):
27712778 filtfilt_kind = 'sos'
@@ -3998,10 +4005,12 @@ def test_nonnumeric_dtypes(func, xp):
39984005# (https://github.com/cupy/cupy/pull/8677)
39994006# 3. an issue with CuPy's __array__ not numpy-2.0 compatible
40004007@skip_xp_backends (cpu_only = True )
4008+ @skip_xp_backends ("dask.array" , reason = "sosfilt doesn't convert dask array to numpy before cython" )
40014009@pytest .mark .parametrize ('dt' , ['float32' , 'float64' , 'complex64' , 'complex128' ])
40024010class TestSOSFilt :
40034011
40044012 # The test_rank* tests are pulled from _TestLinearFilter
4013+
40054014 @skip_xp_backends ('jax.numpy' , reason = 'buffer array is read-only' )
40064015 def test_rank1 (self , dt , xp ):
40074016 dt = getattr (xp , dt )
@@ -4210,6 +4219,7 @@ def test_bad_zi_shape(self, dt, xp):
42104219 with pytest .raises (ValueError , match = 'Invalid zi shape' ):
42114220 sosfilt (sos , x , zi = zi , axis = 1 )
42124221
4222+
42134223 @skip_xp_backends ('jax.numpy' , reason = 'item assignment' )
42144224 def test_sosfilt_zi (self , dt , xp ):
42154225 dt = getattr (xp , dt )
@@ -4317,6 +4327,7 @@ def test_bp(self, xp):
43174327 with assert_raises (ValueError ):
43184328 detrend (data , type = "linear" , bp = 3 )
43194329
4330+ @pytest .mark .filterwarnings ("ignore::FutureWarning:dask" )
43204331 @pytest .mark .parametrize ('bp' , [np .array ([0 , 2 ]), [0 , 2 ]])
43214332 def test_detrend_array_bp (self , bp , xp ):
43224333 # regression test for https://github.com/scipy/scipy/issues/18675
0 commit comments