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 d0eb86c commit 35e6dd0Copy full SHA for 35e6dd0
testing/test_debugging.py
@@ -342,6 +342,15 @@ def pytest_runtest_protocol():
342
child.sendeof()
343
self.flush(child)
344
345
+ def test_pdb_prevent_ConftestImportFailure_hiding_exception(self, testdir):
346
+ testdir.makepyfile("def test_func(): pass")
347
+ sub_dir = testdir.tmpdir.join("ns").ensure_dir()
348
+ sub_dir.join("conftest").new(ext=".py").write("import unknown")
349
+ sub_dir.join("test_file").new(ext=".py").write("def test_func(): pass")
350
+
351
+ result = testdir.runpytest_subprocess("--pdb", ".")
352
+ result.stdout.fnmatch_lines(["-> import unknown"])
353
354
def test_pdb_interaction_capturing_simple(self, testdir):
355
p1 = testdir.makepyfile(
356
"""
0 commit comments