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

Function test_buffer_weakref

python/pyarrow/tests/test_io.py:455–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453
454
455def test_buffer_weakref():
456 buf = pa.py_buffer(b'some data')
457 wr = weakref.ref(buf)
458 assert wr() is not None
459 del buf
460 assert wr() is None
461
462
463@pytest.mark.parametrize('val, expected_hex_buffer',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected