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

Function test_buffer_memoryview

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

Source from the content-addressed store, hash-verified

419
420
421def test_buffer_memoryview(pickle_module):
422 val = b'some data'
423
424 buf = pa.py_buffer(val)
425 assert isinstance(buf, pa.Buffer)
426 assert not buf.is_mutable
427 assert buf.is_cpu
428
429 result = memoryview(buf)
430 assert result == val
431
432 check_buffer_pickling(buf, pickle_module)
433
434
435def test_buffer_bytearray(pickle_module):

Callers

nothing calls this directly

Calls 1

check_buffer_picklingFunction · 0.85

Tested by

no test coverage detected