diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-10-27 18:54:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 18:54:20 (GMT) |
commit | 15acc4eaba8519d7d5f2acaffde65446b44dcf79 (patch) | |
tree | 9e67e28b551fd67a2ffb24e7cc6b7d11b3584db6 /Lib/test/test_exceptions.py | |
parent | 95f710c55714153f0c8cce48f8215bb3d866ac1d (diff) | |
download | cpython-15acc4eaba8519d7d5f2acaffde65446b44dcf79.zip cpython-15acc4eaba8519d7d5f2acaffde65446b44dcf79.tar.gz cpython-15acc4eaba8519d7d5f2acaffde65446b44dcf79.tar.bz2 |
bpo-41659: Disallow curly brace directly after primary (GH-22996)
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 1ec4468..4dbf5fe 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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) |