()
| 1091 | |
| 1092 | |
| 1093 | def 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 | |
| 1106 | def test_block_empty_lists(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…