(self)
| 3902 | "Got an error running test script under PDB") |
| 3903 | |
| 3904 | def test_issue16180(self): |
| 3905 | # A syntax error in the debuggee. |
| 3906 | script = "def f: pass\n" |
| 3907 | commands = '' |
| 3908 | expected = "SyntaxError:" |
| 3909 | stdout, stderr = self.run_pdb_script( |
| 3910 | script, commands |
| 3911 | ) |
| 3912 | self.assertIn(expected, stderr, |
| 3913 | '\n\nExpected:\n{}\nGot:\n{}\n' |
| 3914 | 'Fail to handle a syntax error in the debuggee.' |
| 3915 | .format(expected, stderr)) |
| 3916 | |
| 3917 | def test_issue84583(self): |
| 3918 | # A syntax error from ast.literal_eval should not make pdb exit. |
nothing calls this directly
no test coverage detected