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

Method test_pdb_custom_cls_without_pdb

testing/test_debugging.py:871–877  ·  view source on GitHub ↗
(
        self, pytester: Pytester, custom_pdb_calls: List[str]
    )

Source from the content-addressed store, hash-verified

869 assert _validate_usepdb_cls("pdb:DoesNotExist") == ("pdb", "DoesNotExist")
870
871 def test_pdb_custom_cls_without_pdb(
872 self, pytester: Pytester, custom_pdb_calls: List[str]
873 ) -> None:
874 p1 = pytester.makepyfile("""xxx """)
875 result = pytester.runpytest_inprocess("--pdbcls=_pytest:_CustomPdb", p1)
876 result.stdout.fnmatch_lines(["*NameError*xxx*", "*1 error*"])
877 assert custom_pdb_calls == []
878
879 def test_pdb_custom_cls_with_set_trace(
880 self,

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected