MCPcopy Create free account
hub / github.com/apache/arrow / test_chunked_array_pickle

Function test_chunked_array_pickle

python/pyarrow/tests/test_table.py:309–318  ·  view source on GitHub ↗
(data, typ, pickle_module)

Source from the content-addressed store, hash-verified

307 ]
308)
309def test_chunked_array_pickle(data, typ, pickle_module):
310 arrays = []
311 while data:
312 arrays.append(pa.array(data[:2], type=typ))
313 data = data[2:]
314 array = pa.chunked_array(arrays, type=typ)
315 array.validate()
316 result = pickle_module.loads(pickle_module.dumps(array))
317 result.validate()
318 assert result.equals(array)
319
320
321@pytest.mark.pandas

Callers

nothing calls this directly

Calls 7

chunked_arrayMethod · 0.80
loadsMethod · 0.80
dumpsMethod · 0.80
equalsMethod · 0.80
appendMethod · 0.45
arrayMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected