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

Function wrapper

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

Source from the content-addressed store, hash-verified

46def check_bytes_allocated(f):
47 @wraps(f)
48 def wrapper(*args, **kwargs):
49 gc.collect()
50 allocated_bytes = pa.total_allocated_bytes()
51 try:
52 return f(*args, **kwargs)
53 finally:
54 assert pa.total_allocated_bytes() == allocated_bytes
55 return wrapper
56
57

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected