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

Function test_array_copy_noop

dask/array/tests/test_array_core.py:2994–3000  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

2992
2993@pytest.mark.parametrize("chunks", [-1, 2])
2994def test_array_copy_noop(chunks):
2995 # Regression test for https://github.com/dask/dask/issues/9533
2996 # Which is a revert of the solution for https://github.com/dask/dask/issues/3751
2997 x = np.arange(10)
2998 y = da.from_array(x, chunks=chunks)
2999 y_c = y.copy()
3000 assert y.name == y_c.name
3001
3002
3003def test_from_array_dask_array():

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected