Function
test_chunked_array_pickle
(data, typ, pickle_module)
Source from the content-addressed store, hash-verified
| 308 | ] |
| 309 | ) |
| 310 | def test_chunked_array_pickle(data, typ, pickle_module): |
| 311 | arrays = [] |
| 312 | while data: |
| 313 | arrays.append(pa.array(data[:2], type=typ)) |
| 314 | data = data[2:] |
| 315 | array = pa.chunked_array(arrays, type=typ) |
| 316 | array.validate() |
| 317 | result = pickle_module.loads(pickle_module.dumps(array)) |
| 318 | result.validate() |
| 319 | assert result.equals(array) |
| 320 | |
| 321 | |
| 322 | @pytest.mark.pandas |
Callers
nothing calls this directly
Tested by
no test coverage detected