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

Function wrapper

python/pyarrow/tests/test_dlpack.py:74–80  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

72def check_bytes_allocated(f):
73 @wraps(f)
74 def wrapper(*args, **kwargs):
75 gc.collect()
76 allocated_bytes = pa.total_allocated_bytes()
77 try:
78 return f(*args, **kwargs)
79 finally:
80 assert pa.total_allocated_bytes() == allocated_bytes
81 return wrapper
82
83

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected