[3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)

(cherry picked from commit 15acc4eaba)
This commit is contained in:
Lysandros Nikolaou 2020-10-28 00:38:42 +02:00 committed by GitHub
parent 8aee019d71
commit c4b58cea47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 244 additions and 167 deletions

View file

@ -205,6 +205,7 @@ def testSyntaxErrorOffset(self):
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)