@@ -195,6 +195,7 @@ def test_correlate01(self, xp):
195195
196196 @xfail_xp_backends ('cupy' , reason = "Differs by a factor of two?" )
197197 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
198+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
198199 def test_correlate01_overlap (self , xp ):
199200 array = xp .reshape (xp .arange (256 ), (16 , 16 ))
200201 weights = xp .asarray ([2 ])
@@ -537,6 +538,7 @@ def test_correlate22(self, dtype_array, dtype_output, xp):
537538 assert_array_almost_equal (output , expected )
538539
539540 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
541+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
540542 @pytest .mark .parametrize ('dtype_array' , types )
541543 @pytest .mark .parametrize ('dtype_output' , types )
542544 def test_correlate23 (self , dtype_array , dtype_output , xp ):
@@ -556,6 +558,7 @@ def test_correlate23(self, dtype_array, dtype_output, xp):
556558 assert_array_almost_equal (output , expected )
557559
558560 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
561+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
559562 @pytest .mark .parametrize ('dtype_array' , types )
560563 @pytest .mark .parametrize ('dtype_output' , types )
561564 def test_correlate24 (self , dtype_array , dtype_output , xp ):
@@ -576,6 +579,7 @@ def test_correlate24(self, dtype_array, dtype_output, xp):
576579 assert_array_almost_equal (output , tcov )
577580
578581 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
582+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
579583 @pytest .mark .parametrize ('dtype_array' , types )
580584 @pytest .mark .parametrize ('dtype_output' , types )
581585 def test_correlate25 (self , dtype_array , dtype_output , xp ):
@@ -881,6 +885,7 @@ def test_gauss06(self, xp):
881885 assert_array_almost_equal (output1 , output2 )
882886
883887 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
888+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
884889 def test_gauss_memory_overlap (self , xp ):
885890 input = xp .arange (100 * 100 , dtype = xp .float32 )
886891 input = xp .reshape (input , (100 , 100 ))
@@ -1227,6 +1232,7 @@ def test_prewitt01(self, dtype, xp):
12271232 assert_array_almost_equal (t , output )
12281233
12291234 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
1235+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
12301236 @pytest .mark .parametrize ('dtype' , types + complex_types )
12311237 def test_prewitt02 (self , dtype , xp ):
12321238 if is_torch (xp ) and dtype in ("uint16" , "uint32" , "uint64" ):
@@ -1289,6 +1295,7 @@ def test_sobel01(self, dtype, xp):
12891295 assert_array_almost_equal (t , output )
12901296
12911297 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." ,)
1298+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
12921299 @pytest .mark .parametrize ('dtype' , types + complex_types )
12931300 def test_sobel02 (self , dtype , xp ):
12941301 if is_torch (xp ) and dtype in ("uint16" , "uint32" , "uint64" ):
@@ -1349,6 +1356,7 @@ def test_laplace01(self, dtype, xp):
13491356 assert_array_almost_equal (tmp1 + tmp2 , output )
13501357
13511358 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only" ,)
1359+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
13521360 @pytest .mark .parametrize ('dtype' ,
13531361 ["int32" , "float32" , "float64" ,
13541362 "complex64" , "complex128" ])
@@ -1379,6 +1387,7 @@ def test_gaussian_laplace01(self, dtype, xp):
13791387 assert_array_almost_equal (tmp1 + tmp2 , output )
13801388
13811389 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only" )
1390+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
13821391 @pytest .mark .parametrize ('dtype' ,
13831392 ["int32" , "float32" , "float64" ,
13841393 "complex64" , "complex128" ])
@@ -1395,6 +1404,7 @@ def test_gaussian_laplace02(self, dtype, xp):
13951404 assert_array_almost_equal (tmp1 + tmp2 , output )
13961405
13971406 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only." )
1407+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
13981408 @pytest .mark .parametrize ('dtype' , types + complex_types )
13991409 def test_generic_laplace01 (self , dtype , xp ):
14001410 if is_torch (xp ) and dtype in ("uint16" , "uint32" , "uint64" ):
@@ -1420,6 +1430,7 @@ def derivative2(input, axis, output, mode, cval, a, b):
14201430 assert_array_almost_equal (tmp , output )
14211431
14221432 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only" )
1433+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
14231434 @pytest .mark .parametrize ('dtype' ,
14241435 ["int32" , "float32" , "float64" ,
14251436 "complex64" , "complex128" ])
@@ -1441,6 +1452,7 @@ def test_gaussian_gradient_magnitude01(self, dtype, xp):
14411452 xp_assert_close (output , expected , rtol = 1e-6 , atol = 1e-6 )
14421453
14431454 @skip_xp_backends ("jax.numpy" , reason = "output array is read-only" )
1455+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
14441456 @pytest .mark .parametrize ('dtype' ,
14451457 ["int32" , "float32" , "float64" ,
14461458 "complex64" , "complex128" ])
@@ -2640,6 +2652,7 @@ def test_gaussian_radius_invalid(xp):
26402652
26412653
26422654@skip_xp_backends ("jax.numpy" , reason = "output array is read-only" )
2655+ @skip_xp_backends ("dask.array" , reason = "output array is read-only." )
26432656class TestThreading :
26442657 def check_func_thread (self , n , fun , args , out ):
26452658 from threading import Thread
0 commit comments