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

Function test_chunked_array_pickle

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

Source from the content-addressed store, hash-verified

308 ]
309)
310def 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

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