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

Method test_pdb_used_outside_test

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

Source from the content-addressed store, hash-verified

749 assert "= 1 passed in" in rest
750
751 def test_pdb_used_outside_test(self, pytester: Pytester) -> None:
752 p1 = pytester.makepyfile(
753 """
754 import pytest
755 pytest.set_trace()
756 x = 5
757 """
758 )
759 child = pytester.spawn(f"{sys.executable} {p1}")
760 child.expect("x = 5")
761 child.expect("Pdb")
762 child.sendeof()
763 self.flush(child)
764
765 def test_pdb_used_in_generate_tests(self, pytester: Pytester) -> None:
766 p1 = pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
makepyfileMethod · 0.45
spawnMethod · 0.45

Tested by

no test coverage detected