()
| 1090 | |
| 1091 | |
| 1092 | def 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 | |
| 1105 | def test_block_empty_lists(): |