(func)
| 89 | ], |
| 90 | ) |
| 91 | def test_array_notimpl_function_dask(func): |
| 92 | x = np.random.default_rng().random((100, 100)) |
| 93 | y = da.from_array(x, chunks=(50, 50)) |
| 94 | |
| 95 | with pytest.warns( |
| 96 | FutureWarning, match="The `.*` function is not implemented by Dask" |
| 97 | ): |
| 98 | func(y) |
| 99 | |
| 100 | |
| 101 | @pytest.mark.parametrize("func", [np.real, np.imag, np.transpose]) |