summaryrefslogtreecommitdiff
path: root/testing/test_debugging.py
diff options
context:
space:
mode:
authorantonblr <anton.hrynevich@percolate.com>2020-12-15 20:16:05 -0800
committerantonblr <anton.hrynevich@percolate.com>2020-12-18 11:02:38 -0800
commit15156e94c49da11c6fc5a57d576d655cc7794fdf (patch)
treea4f0ea854b8645953a7e3599a08023bb83c60c92 /testing/test_debugging.py
parentf14ab08de3d3ed840d111d111bd56122baa4224e (diff)
downloadpytest-15156e94c49da11c6fc5a57d576d655cc7794fdf.tar.gz
tests: Migrate to pytester - final update
Diffstat (limited to 'testing/test_debugging.py')
-rw-r--r--testing/test_debugging.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/test_debugging.py b/testing/test_debugging.py
index ed96f7ec7..8218b7a0e 100644
--- a/testing/test_debugging.py
+++ b/testing/test_debugging.py
@@ -21,11 +21,10 @@ _ENVIRON_PYTHONBREAKPOINT = os.environ.get("PYTHONBREAKPOINT", "")
@pytest.fixture(autouse=True)
-def pdb_env(request):
+def pdb_env(request, monkeypatch: MonkeyPatch):
if "pytester" in request.fixturenames:
# Disable pdb++ with inner tests.
- pytester = request.getfixturevalue("testdir")
- pytester.monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
+ monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
def runpdb_and_get_report(pytester: Pytester, source: str):