mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161)
This commit is contained in:
parent
66f77caca3
commit
d6d6371447
8 changed files with 88 additions and 8 deletions
|
@ -260,7 +260,7 @@ the \'lazy\' dog.\n\
|
|||
for s in samples:
|
||||
with self.assertRaises(SyntaxError) as cm:
|
||||
compile(s, "<test>", "exec")
|
||||
self.assertIn("unexpected EOF", str(cm.exception))
|
||||
self.assertIn("was never closed", str(cm.exception))
|
||||
|
||||
var_annot_global: int # a global annotated is necessary for test_var_annot
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue