MCPcopy Create free account
hub / github.com/pytest-dev/pytest / wrapper

Function wrapper

src/_pytest/debugging.py:322–324  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

320 # an exception if one of the kwargs to testfunction was called `func`.
321 @functools.wraps(testfunction)
322 def wrapper(*args, **kwargs):
323 func = functools.partial(testfunction, *args, **kwargs)
324 _pdb.runcall(func)
325
326 pyfuncitem.obj = wrapper
327

Callers

nothing calls this directly

Calls 1

runcallMethod · 0.80

Tested by

no test coverage detected