diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-10-27 22:38:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 22:38:42 (GMT) |
commit | c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9f (patch) | |
tree | 7e9bc77d8b2fe08c43a86b6805c14bdc31c20485 /Lib/test/test_exceptions.py | |
parent | 8aee019d71b9ed44107bdc8a0c9c132059c0e1ef (diff) | |
download | cpython-c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9f.zip cpython-c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9f.tar.gz cpython-c4b58cea4771afc0ddfdb857b0fb5115b9f4bc9f.tar.bz2 |
[3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)
(cherry picked from commit 15acc4eaba8519d7d5f2acaffde65446b44dcf79)
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 47f3711..8d125b5 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -205,6 +205,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) |