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

Function pdb_env

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

Source from the content-addressed store, hash-verified

12
13@pytest.fixture(autouse=True)
14def pdb_env(request):
15 if "pytester" in request.fixturenames:
16 # Disable pdb++ with inner tests.
17 pytester = request.getfixturevalue("pytester")
18 pytester._monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
19
20
21def runpdb(pytester: Pytester, source: str):

Callers

nothing calls this directly

Calls 2

getfixturevalueMethod · 0.80
setenvMethod · 0.80

Tested by

no test coverage detected