(self)
| 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(""" |
nothing calls this directly
no test coverage detected