@@ -3991,6 +3991,12 @@ def test_nonnumeric_dtypes(func, xp):
3991
3991
func (* args , x = 1. )
3992
3992
3993
3993
3994
+ # XXX: restore testing on CuPy, where possible. Multiple issues in this test:
3995
+ # 1. _zi functions deliberately incompatible in cupy
3996
+ # (https://github.com/scipy/scipy/pull/21713#issuecomment-2417494443)
3997
+ # 2. a CuPy issue to be fixed in 14.0 only
3998
+ # (https://github.com/cupy/cupy/pull/8677)
3999
+ # 3. an issue with CuPy's __array__ not numpy-2.0 compatible
3994
4000
@skip_xp_backends (cpu_only = True )
3995
4001
@pytest .mark .parametrize ('dt' , ['float32' , 'float64' , 'complex64' , 'complex128' ])
3996
4002
class TestSOSFilt :
@@ -4006,16 +4012,16 @@ def test_rank1(self, dt, xp):
4006
4012
# Test simple IIR
4007
4013
y_r = xp .asarray ([0 , 2 , 4 , 6 , 8 , 10. ], dtype = dt )
4008
4014
sos = tf2sos (b , a )
4009
- sos = xp .asarray (sos ) # XXX until tf2sos is numpy only
4015
+ sos = xp .asarray (sos ) # XXX while tf2sos is numpy only
4010
4016
assert_array_almost_equal (sosfilt (sos , x ), y_r )
4011
4017
4012
4018
# Test simple FIR
4013
- b = xp .asarray ([1 , 1 ], dtype = dt )
4019
+ b = xp .asarray ([1 , 1 ], dtype = dt )
4014
4020
# NOTE: This was changed (rel. to TestLinear...) to add a pole @zero:
4015
4021
a = xp .asarray ([1 , 0 ], dtype = dt )
4016
4022
y_r = xp .asarray ([0 , 1 , 3 , 5 , 7 , 9. ], dtype = dt )
4017
4023
sos = tf2sos (b , a )
4018
- sos = xp .asarray (sos ) # XXX until tf2sos is numpy only
4024
+ sos = xp .asarray (sos ) # XXX while tf2sos is numpy only
4019
4025
assert_array_almost_equal (sosfilt (sos , x ), y_r )
4020
4026
4021
4027
b = xp .asarray ([1.0 , 1 , 0 ])
@@ -4239,6 +4245,7 @@ def test_dtype_deprecation(self, dt, xp):
4239
4245
sosfilt (sos , x )
4240
4246
4241
4247
4248
+ @skip_xp_backends (cpu_only = True , reason = 'lfilter is CPU-only compiled code' )
4242
4249
@skip_xp_backends ('jax.numpy' , reason = 'item assignment' )
4243
4250
class TestDeconvolve :
4244
4251
0 commit comments