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

Function test_buffer_bytes

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

Source from the content-addressed store, hash-verified

392
393
394def test_buffer_bytes(pickle_module):
395 val = b'some data'
396
397 buf = pa.py_buffer(val)
398 assert isinstance(buf, pa.Buffer)
399 assert not buf.is_mutable
400 assert buf.is_cpu
401
402 result = buf.to_pybytes()
403 assert result == val
404
405 check_buffer_pickling(buf, pickle_module)
406
407
408def test_buffer_null_data(pickle_module):

Callers

nothing calls this directly

Calls 1

check_buffer_picklingFunction · 0.85

Tested by

no test coverage detected