mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
Allow the parser to avoid nested processing of invalid rules (GH-31252)
This commit is contained in:
parent
2cea8c29cf
commit
390459de6d
6 changed files with 1998 additions and 1997 deletions
|
@ -231,7 +231,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
check('a = « hello » « world »', 1, 5)
|
||||
check('[\nfile\nfor str(file)\nin\n[]\n]', 3, 5)
|
||||
check('[file for\n str(file) in []]', 2, 2)
|
||||
check("ages = {'Alice'=22, 'Bob'=23}", 1, 16)
|
||||
check("ages = {'Alice'=22, 'Bob'=23}", 1, 9)
|
||||
check('match ...:\n case {**rest, "key": value}:\n ...', 2, 19)
|
||||
check("[a b c d e f]", 1, 2)
|
||||
check("for x yfff:", 1, 7)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue