()
| 182 | |
| 183 | |
| 184 | def test_non_existent_func(): |
| 185 | # Regression test for __array_function__ becoming default in numpy 1.17 |
| 186 | # dask has no sort function, so ensure that this still calls np.sort |
| 187 | x = da.from_array(np.array([1, 2, 4, 3]), chunks=(2,)) |
| 188 | with pytest.warns( |
| 189 | FutureWarning, match="The `numpy.sort` function is not implemented by Dask" |
| 190 | ): |
| 191 | assert list(np.sort(x)) == [1, 2, 3, 4] |
| 192 | |
| 193 | |
| 194 | @pytest.mark.parametrize( |
nothing calls this directly
no outgoing calls
no test coverage detected