MCPcopy
hub / github.com/pytest-dev/pytest / maybe_wrap_pytest_function_for_tracing

Function maybe_wrap_pytest_function_for_tracing

src/_pytest/debugging.py:330–334  ·  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

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

Callers 1

runtestMethod · 0.90

Calls 2

getvalueMethod · 0.45

Tested by 1

runtestMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…