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

Function test_logging_memory_pool

python/pyarrow/tests/test_memory.py:98–104  ·  view source on GitHub ↗
(capfd)

Source from the content-addressed store, hash-verified

96
97
98def test_logging_memory_pool(capfd):
99 pool = pa.logging_memory_pool(pa.default_memory_pool())
100 check_allocated_bytes(pool)
101 out, err = capfd.readouterr()
102 assert err == ""
103 assert out.count("Allocate:") > 0
104 assert out.count("Allocate:") == out.count("Free:")
105
106
107def test_set_memory_pool():

Callers

nothing calls this directly

Calls 2

check_allocated_bytesFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected