mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
bpo-41659: Disallow curly brace directly after primary (GH-22996)
This commit is contained in:
parent
95f710c557
commit
15acc4eaba
5 changed files with 244 additions and 167 deletions
|
@ -208,6 +208,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
check(b'Python = "\xcf\xb3\xf2\xee\xed" +', 1, 18)
|
||||
check('x = "a', 1, 7)
|
||||
check('lambda x: x = 2', 1, 1)
|
||||
check('f{a + b + c}', 1, 2)
|
||||
|
||||
# Errors thrown by compile.c
|
||||
check('class foo:return 1', 1, 11)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue