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

Function test_block_invalid_nesting

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected