summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-05 23:17:49 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-05 23:17:49 (GMT)
commit5f9525b115e7a8242d9f561e20b178c14795ce18 (patch)
treeecf056d94c7792b9f3d7c3d96f1751543d4b9aa0 /Lib/test
parentba5f59089a1ee2761cacd8b207701f1698d3e6e6 (diff)
parente989bf587cd0e239de23846a22618613472a71ff (diff)
downloadcpython-5f9525b115e7a8242d9f561e20b178c14795ce18.zip
cpython-5f9525b115e7a8242d9f561e20b178c14795ce18.tar.gz
cpython-5f9525b115e7a8242d9f561e20b178c14795ce18.tar.bz2
Merge with 3.5
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pdb.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index ec8346c..35044ad 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -1043,6 +1043,18 @@ class PdbTestCase(unittest.TestCase):
self.assertNotIn('Error', stdout.decode(),
"Got an error running test script under PDB")
+ def test_issue16180(self):
+ # A syntax error in the debuggee.
+ script = "def f: pass\n"
+ commands = ''
+ expected = "SyntaxError:"
+ stdout, stderr = self.run_pdb(script, commands)
+ self.assertIn(expected, stdout,
+ '\n\nExpected:\n{}\nGot:\n{}\n'
+ 'Fail to handle a syntax error in the debuggee.'
+ .format(expected, stdout))
+
+
def tearDown(self):
support.unlink(support.TESTFN)