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

Method test_pdbrc_semicolon

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

Source from the content-addressed store, hash-verified

4042 self.assertIn("a.attr = 1", stdout)
4043
4044 def test_pdbrc_semicolon(self):
4045 script = textwrap.dedent("""
4046 class A:
4047 def __init__(self):
4048 self.attr = 1
4049 a = A()
4050 b = 2
4051 """)
4052
4053 pdbrc = textwrap.dedent("""
4054 b 5;;c;;n
4055 """)
4056
4057 stdout, stderr = self.run_pdb_script(script, 'q\n', pdbrc=pdbrc, remove_home=True)
4058 self.assertIn("-> b = 2", stdout)
4059
4060 def test_pdbrc_commands(self):
4061 script = textwrap.dedent("""

Callers

nothing calls this directly

Calls 3

run_pdb_scriptMethod · 0.95
assertInMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected