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

Function pdb_env

testing/test_debugging.py:24–28  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

22
23@pytest.fixture(autouse=True)
24def pdb_env(request):
25 if "pytester" in request.fixturenames:
26 # Disable pdb++ with inner tests.
27 pytester = request.getfixturevalue("pytester")
28 pytester._monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
29
30
31def runpdb_and_get_report(pytester: Pytester, source: str):

Callers

nothing calls this directly

Calls 2

getfixturevalueMethod · 0.80
setenvMethod · 0.80

Tested by

no test coverage detected