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

Method test_pdb_without_capture

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

Source from the content-addressed store, hash-verified

640 self.flush(child)
641
642 def test_pdb_without_capture(self, pytester: Pytester) -> None:
643 p1 = pytester.makepyfile(
644 """
645 import pytest
646 def test_1():
647 pytest.set_trace()
648 """
649 )
650 child = pytester.spawn_pytest("-s %s" % p1)
651 child.expect(r">>> PDB set_trace >>>")
652 child.expect("Pdb")
653 child.sendline("c")
654 child.expect(r">>> PDB continue >>>")
655 child.expect("1 passed")
656 self.flush(child)
657
658 @pytest.mark.parametrize("capture_arg", ("", "-s", "-p no:capture"))
659 def test_pdb_continue_with_recursive_debug(

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
makepyfileMethod · 0.45
spawn_pytestMethod · 0.45

Tested by

no test coverage detected