MCPcopy Create free account
hub / github.com/dask/dask / test_non_existent_func

Function test_non_existent_func

dask/array/tests/test_array_function.py:184–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def 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(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected