From a283ef116ba909f133a8e16bb8d17d9e613831d8 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Fri, 16 Jul 2021 13:20:09 +0100 Subject: Remove unnecessary 'invalid_primary' rule in the parser (GH-27186) --- Lib/test/test_exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_exceptions.py') diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index f92637f9930..2b00147dc90 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -209,7 +209,7 @@ class ExceptionTests(unittest.TestCase): check(b'Python = "\xcf\xb3\xf2\xee\xed" +', 1, 18) check('x = "a', 1, 5) check('lambda x: x = 2', 1, 1) - check('f{a + b + c}', 1, 2) + check('f{a + b + c}', 1, 1) check('[file for str(file) in []\n])', 2, 2) check('a = « hello » « world »', 1, 5) check('[\nfile\nfor str(file)\nin\n[]\n]', 3, 5) -- cgit v1.2.3