Test that empty lines in .pdbrc are ignored.
(self)
| 4006 | self.assertIn("-> b = 2", stdout) |
| 4007 | |
| 4008 | def test_pdbrc_empty_line(self): |
| 4009 | """Test that empty lines in .pdbrc are ignored.""" |
| 4010 | |
| 4011 | script = textwrap.dedent(""" |
| 4012 | a = 1 |
| 4013 | b = 2 |
| 4014 | c = 3 |
| 4015 | """) |
| 4016 | |
| 4017 | pdbrc = textwrap.dedent(""" |
| 4018 | n |
| 4019 | |
| 4020 | """) |
| 4021 | |
| 4022 | stdout, stderr = self.run_pdb_script(script, 'q\n', pdbrc=pdbrc, remove_home=True) |
| 4023 | self.assertIn("b = 2", stdout) |
| 4024 | self.assertNotIn("c = 3", stdout) |
| 4025 | |
| 4026 | def test_pdbrc_alias(self): |
| 4027 | script = textwrap.dedent(""" |
nothing calls this directly
no test coverage detected