(seq)
| 266 | |
| 267 | @parametrize_with_sequence_types |
| 268 | def test_nested_lists(seq): |
| 269 | data = [[], [1, 2], None] |
| 270 | arr = pa.array(seq(data)) |
| 271 | assert len(arr) == 3 |
| 272 | assert arr.null_count == 1 |
| 273 | assert arr.type == pa.list_(pa.int64()) |
| 274 | assert arr.to_pylist() == data |
| 275 | |
| 276 | |
| 277 | @parametrize_with_sequence_types |