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

Function test_buffer_bytearray

python/pyarrow/tests/test_io.py:435–446  ·  view source on GitHub ↗
(pickle_module)

Source from the content-addressed store, hash-verified

433
434
435def test_buffer_bytearray(pickle_module):
436 val = bytearray(b'some data')
437
438 buf = pa.py_buffer(val)
439 assert isinstance(buf, pa.Buffer)
440 assert buf.is_mutable
441 assert buf.is_cpu
442
443 result = bytearray(buf)
444 assert result == val
445
446 check_buffer_pickling(buf, pickle_module)
447
448
449def test_buffer_invalid():

Callers

nothing calls this directly

Calls 1

check_buffer_picklingFunction · 0.85

Tested by

no test coverage detected