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

Function test_total_bytes_allocated

python/pyarrow/tests/test_array.py:42–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41@pytest.mark.processes
42def test_total_bytes_allocated():
43 code = """if 1:
44 import pyarrow as pa
45
46 assert pa.total_allocated_bytes() == 0
47 """
48 res = subprocess.run([sys.executable, "-c", code],
49 universal_newlines=True, stderr=subprocess.PIPE)
50 if res.returncode != 0:
51 print(res.stderr, file=sys.stderr)
52 res.check_returncode() # fail
53 assert len(res.stderr.splitlines()) == 0
54
55
56def test_weakref():

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
check_returncodeMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected