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

Function make_buffer

python/pyarrow/tests/test_io.py:993–994  ·  view source on GitHub ↗
(bytes_obj)

Source from the content-addressed store, hash-verified

991
992def test_buffer_protocol_ref_counting():
993 def make_buffer(bytes_obj):
994 return bytearray(pa.py_buffer(bytes_obj))
995
996 buf = make_buffer(b'foo')
997 gc.collect()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected