MCPcopy Index your code
hub / github.com/numpy/numpy / wrapper

Function wrapper

numpy/testing/_private/utils.py:2689–2698  ·  view source on GitHub ↗
(*a, **kw)

Source from the content-addressed store, hash-verified

2687 def decorator(func):
2688 @wraps(func)
2689 def wrapper(*a, **kw):
2690 msg = check_free_memory(free_bytes)
2691 if msg is not None:
2692 pytest.skip(msg)
2693
2694 try:
2695 return func(*a, **kw)
2696 except MemoryError:
2697 # Probably ran out of memory regardless: don't regard as failure
2698 pytest.xfail("MemoryError raised")
2699
2700 return wrapper
2701

Callers

nothing calls this directly

Calls 2

check_free_memoryFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…