diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-06-09 21:20:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 21:20:01 (GMT) |
commit | 457ce60fc70f1c9290023f46fb82b6a490dff32e (patch) | |
tree | ce11ef3395d5dee461c809150b57c7ea8f212596 /Lib/test/test_exceptions.py | |
parent | 878d7e4ee464913438fd59582bbb795e7e0fa387 (diff) | |
download | cpython-457ce60fc70f1c9290023f46fb82b6a490dff32e.zip cpython-457ce60fc70f1c9290023f46fb82b6a490dff32e.tar.gz cpython-457ce60fc70f1c9290023f46fb82b6a490dff32e.tar.bz2 |
bpo-44368: Ensure we don't raise incorrect custom syntax errors with soft keywords (GH-26630)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b242c08..9cb5466 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -215,6 +215,7 @@ class ExceptionTests(unittest.TestCase): 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('match ...:\n case {**rest, "key": value}:\n ...', 2, 19) # Errors thrown by compile.c check('class foo:return 1', 1, 11) |