MCPcopy Index your code
hub / github.com/python/cpython / test_step_into_botframe

Method test_step_into_botframe

Lib/test/test_pdb.py:3977–3989  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3975 self.assertIn('(Pdb) 42', lines)
3976
3977 def test_step_into_botframe(self):
3978 # gh-125422
3979 # pdb should not be able to step into the botframe (bdb.py)
3980 script = "x = 1"
3981 commands = """
3982 step
3983 step
3984 step
3985 quit
3986 """
3987 stdout, _ = self.run_pdb_script(script, commands)
3988 self.assertIn("The program finished", stdout)
3989 self.assertNotIn("bdb.py", stdout)
3990
3991 def test_pdbrc_basic(self):
3992 script = textwrap.dedent("""

Callers

nothing calls this directly

Calls 3

run_pdb_scriptMethod · 0.95
assertInMethod · 0.80
assertNotInMethod · 0.80

Tested by

no test coverage detected