mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
bpo-45727: Make the syntax error for missing comma more consistent (GH-29427)
This commit is contained in:
parent
c8c21bdd19
commit
546cefcda7
4 changed files with 27 additions and 24 deletions
|
@ -233,6 +233,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
check('[file for\n str(file) in []]', 2, 2)
|
||||
check("ages = {'Alice'=22, 'Bob'=23}", 1, 16)
|
||||
check('match ...:\n case {**rest, "key": value}:\n ...', 2, 19)
|
||||
check("a b c d e f", 1, 1)
|
||||
|
||||
# Errors thrown by compile.c
|
||||
check('class foo:return 1', 1, 11)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue