MCPcopy
hub / github.com/dask/dask / test_out_numpy

Function test_out_numpy

dask/array/tests/test_ufunc.py:458–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

456
457
458def test_out_numpy():
459 x = da.arange(10, chunks=(5,))
460 empty = np.empty(10, dtype=x.dtype)
461 with pytest.raises((TypeError, NotImplementedError)) as info:
462 np.add(x, 1, out=empty)
463
464 assert "ndarray" in str(info.value)
465 assert "Array" in str(info.value)
466
467
468def test_out_shape_mismatch():

Callers

nothing calls this directly

Calls 3

arangeMethod · 0.45
emptyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…