summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-02-10 13:12:14 (GMT)
committerGitHub <noreply@github.com>2022-02-10 13:12:14 (GMT)
commit390459de6db1e68b79c0897cc88c0d562693ec5c (patch)
tree797c720a46e689baa63cc29c59a3f41511a0fb6c /Lib/test/test_exceptions.py
parent2cea8c29cf975a8ad7d8c3ff19d1e836c2d54707 (diff)
downloadcpython-390459de6db1e68b79c0897cc88c0d562693ec5c.zip
cpython-390459de6db1e68b79c0897cc88c0d562693ec5c.tar.gz
cpython-390459de6db1e68b79c0897cc88c0d562693ec5c.tar.bz2
Allow the parser to avoid nested processing of invalid rules (GH-31252)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 898b5cc..e3897a0 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -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)