2626# mypy: disable-error-code=no-untyped-usage
2727
2828
29- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no expand_dims" )
29+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no expand_dims" )
3030class TestAtLeastND :
3131 def test_0D (self , xp : ModuleType ):
3232 x = xp .asarray (1.0 )
@@ -98,7 +98,7 @@ def test_xp(self, xp: ModuleType):
9898 xp_assert_equal (y , x )
9999
100100
101- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no isdtype" )
101+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no isdtype" )
102102class TestCov :
103103 def test_basic (self , xp : ModuleType ):
104104 xp_assert_close (
@@ -137,17 +137,15 @@ def test_device(self, xp: ModuleType, device: Device):
137137 x = xp .asarray ([1 , 2 , 3 ], device = device )
138138 assert get_device (cov (x )) == device
139139
140- @pytest .mark .skip_xp_backend (
141- Backend .NUMPY_READONLY , reason = "numpy_readonly:explicit xp"
142- )
140+ @pytest .mark .skip_xp_backend (Backend .NUMPY_READONLY , reason = "explicit xp" )
143141 def test_xp (self , xp : ModuleType ):
144142 xp_assert_close (
145143 cov (xp .asarray ([[0.0 , 2.0 ], [1.0 , 1.0 ], [2.0 , 0.0 ]]).T , xp = xp ),
146144 xp .asarray ([[1.0 , - 1.0 ], [- 1.0 , 1.0 ]], dtype = xp .float64 ),
147145 )
148146
149147
150- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no device kwarg in asarray " )
148+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no device" )
151149class TestCreateDiagonal :
152150 def test_1d (self , xp : ModuleType ):
153151 # from np.diag tests
@@ -193,10 +191,10 @@ def test_xp(self, xp: ModuleType):
193191 xp_assert_equal (y , xp .asarray ([[1 , 0 ], [0 , 2 ]]))
194192
195193
196- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no expand_dims" )
194+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no expand_dims" )
197195class TestExpandDims :
198- @pytest .mark .skip_xp_backend (Backend .DASK , reason = "dask: tuple index out of range" )
199- @pytest .mark .skip_xp_backend (Backend .TORCH , reason = "torch: tuple index out of range" )
196+ @pytest .mark .skip_xp_backend (Backend .DASK , reason = "tuple index out of range" )
197+ @pytest .mark .skip_xp_backend (Backend .TORCH , reason = "tuple index out of range" )
200198 def test_functionality (self , xp : ModuleType ):
201199 def _squeeze_all (b : Array ) -> Array :
202200 """Mimics `np.squeeze(b)`. `xpx.squeeze`?"""
@@ -254,7 +252,7 @@ def test_xp(self, xp: ModuleType):
254252 assert y .shape == (1 , 1 , 1 , 3 )
255253
256254
257- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no expand_dims" )
255+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no expand_dims" )
258256class TestKron :
259257 def test_basic (self , xp : ModuleType ):
260258 # Using 0-dimensional array
@@ -351,9 +349,7 @@ def test_xp(self, xp: ModuleType):
351349 xp_assert_equal (nunique (a , xp = xp ), xp .asarray (3 ))
352350
353351
354- @pytest .mark .skip_xp_backend (
355- Backend .SPARSE , reason = "sparse:no arange, no device kwarg in asarray"
356- )
352+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no arange, no device" )
357353class TestPad :
358354 def test_simple (self , xp : ModuleType ):
359355 a = xp .arange (1 , 4 )
@@ -403,8 +399,8 @@ def test_list_of_tuples_width(self, xp: ModuleType):
403399 assert padded .shape == (4 , 4 )
404400
405401
406- @pytest .mark .skip_xp_backend (Backend .DASK , reason = "dask: no argsort" )
407- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no device kwarg in asarray" )
402+ @pytest .mark .skip_xp_backend (Backend .DASK , reason = "no argsort" )
403+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no device kwarg in asarray" )
408404class TestSetDiff1D :
409405 @pytest .mark .skip_xp_backend (
410406 Backend .TORCH , reason = "index_select not implemented for uint32"
@@ -440,9 +436,7 @@ def test_device(self, xp: ModuleType, device: Device):
440436 x2 = xp .asarray ([2 , 3 , 4 ], device = device )
441437 assert get_device (setdiff1d (x1 , x2 )) == device
442438
443- @pytest .mark .skip_xp_backend (
444- Backend .NUMPY_READONLY , reason = "numpy_readonly:explicit xp"
445- )
439+ @pytest .mark .skip_xp_backend (Backend .NUMPY_READONLY , reason = "explicit xp" )
446440 def test_xp (self , xp : ModuleType ):
447441 x1 = xp .asarray ([3 , 8 , 20 ])
448442 x2 = xp .asarray ([2 , 3 , 4 ])
@@ -451,7 +445,7 @@ def test_xp(self, xp: ModuleType):
451445 xp_assert_equal (actual , expected )
452446
453447
454- @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "sparse: no isdtype" )
448+ @pytest .mark .skip_xp_backend (Backend .SPARSE , reason = "no isdtype" )
455449class TestSinc :
456450 def test_simple (self , xp : ModuleType ):
457451 xp_assert_equal (sinc (xp .asarray (0.0 )), xp .asarray (1.0 ))
0 commit comments