def test_garbage_collection(self):
    import gc
    gc.collect()
    bytes_before = pyarrow.total_allocated_bytes()
    pyarrow.from_pylist([1, None, 3, None])
    gc.collect()
    assert (pyarrow.total_allocated_bytes() == bytes_before)
def test_garbage_collection(self):
    import gc
    gc.collect()
    bytes_before = pyarrow.total_allocated_bytes()
    pyarrow.from_pylist([1, None, 3, None])
    gc.collect()
    assert (pyarrow.total_allocated_bytes() == bytes_before)