MCPcopy
hub / github.com/dask/dask / test_block_invalid_nesting

Function test_block_invalid_nesting

dask/array/tests/test_array_core.py:1093–1103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1091
1092
1093def test_block_invalid_nesting():
1094 for arrays in [
1095 [1, [2]],
1096 [1, []],
1097 [[1], 2],
1098 [[], 2],
1099 [[[1], [2]], [[3, 4]], [5]], # missing brackets
1100 ]:
1101 with pytest.raises(ValueError) as e:
1102 da.block(arrays)
1103 e.match(r"depths are mismatched")
1104
1105
1106def test_block_empty_lists():

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…