(self, pytester: Pytester, custom_debugger_hook)
| 956 | not SUPPORTS_BREAKPOINT_BUILTIN, reason="Requires breakpoint() builtin" |
| 957 | ) |
| 958 | def test_pdb_custom_cls(self, pytester: Pytester, custom_debugger_hook) -> None: |
| 959 | p1 = pytester.makepyfile( |
| 960 | """ |
| 961 | def test_nothing(): |
| 962 | breakpoint() |
| 963 | """ |
| 964 | ) |
| 965 | result = pytester.runpytest_inprocess( |
| 966 | "--pdb", "--pdbcls=_pytest:_CustomDebugger", p1 |
| 967 | ) |
| 968 | result.stdout.fnmatch_lines(["*CustomDebugger*", "*1 passed*"]) |
| 969 | assert custom_debugger_hook == ["init", "set_trace"] |
| 970 | |
| 971 | @pytest.mark.parametrize("arg", ["--pdb", ""]) |
| 972 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected