We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813ef9e commit 7ef4491Copy full SHA for 7ef4491
testing/test_pdb.py
@@ -17,6 +17,14 @@
17
_ENVIRON_PYTHONBREAKPOINT = os.environ.get("PYTHONBREAKPOINT", "")
18
19
20
+@pytest.fixture(autouse=True)
21
+def pdb_env(request):
22
+ if "testdir" in request.fixturenames:
23
+ # Disable pdb++ with inner tests.
24
+ testdir = request.getfixturevalue("testdir")
25
+ testdir._env_run_update["PDBPP_HIJACK_PDB"] = "0"
26
+
27
28
def runpdb_and_get_report(testdir, source):
29
p = testdir.makepyfile(source)
30
result = testdir.runpytest_inprocess("--pdb", p)
0 commit comments