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

Function test_garbage_collection

python/pyarrow/tests/test_convert_builtin.py:540–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

538
539
540def test_garbage_collection():
541 import gc
542
543 # Force the cyclic garbage collector to run
544 gc.collect()
545
546 bytes_before = pa.total_allocated_bytes()
547 pa.array([1, None, 3, None])
548 gc.collect()
549 assert pa.total_allocated_bytes() == bytes_before
550
551
552def test_sequence_double():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected