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

Method test_issue16180

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

run_pdb_scriptMethod · 0.95
assertInMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected