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

Method test_pdb_collection_failure_is_shown

testing/test_debugging.py:782–787  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

780 self.flush(child)
781
782 def test_pdb_collection_failure_is_shown(self, pytester: Pytester) -> None:
783 p1 = pytester.makepyfile("xxx")
784 result = pytester.runpytest_subprocess("--pdb", p1)
785 result.stdout.fnmatch_lines(
786 ["E NameError: *xxx*", "*! *Exit: Quitting debugger !*"] # due to EOF
787 )
788
789 @pytest.mark.parametrize("post_mortem", (False, True))
790 def test_enter_leave_pdb_hooks_are_called(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytest_subprocessMethod · 0.45

Tested by

no test coverage detected