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:2991–2997  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected