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

Function maybe_wrap_pytest_function_for_tracing

src/_pytest/debugging.py:329–333  ·  view source on GitHub ↗

Wrap the given pytestfunct item for tracing support if --trace was given in the command line.

(pyfuncitem)

Source from the content-addressed store, hash-verified

327
328
329def maybe_wrap_pytest_function_for_tracing(pyfuncitem):
330 """Wrap the given pytestfunct item for tracing support if --trace was given in
331 the command line."""
332 if pyfuncitem.config.getvalue("trace"):
333 wrap_pytest_function_for_tracing(pyfuncitem)
334
335
336def _enter_pdb(

Callers 1

runtestMethod · 0.90

Calls 2

getvalueMethod · 0.45

Tested by 1

runtestMethod · 0.72