aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-01-04 10:41:22 +0000
committerGitHub <noreply@github.com>2022-01-04 10:41:22 +0000
commit70f415fb8b632247e28d87998642317ca7a652ae (patch)
tree5e22e01157df0af81065d577f6609c948646ad93 /Lib/test/test_exceptions.py
parenta94461d7189d7f1147ab304a332c8684263dc17e (diff)
downloadcpython-70f415fb8b632247e28d87998642317ca7a652ae.tar.gz
cpython-70f415fb8b632247e28d87998642317ca7a652ae.zip
bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378)
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 3e7808c4499..c04b57f5630 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -227,7 +227,7 @@ class ExceptionTests(unittest.TestCase):
check('x = "a', 1, 5)
check('lambda x: x = 2', 1, 1)
check('f{a + b + c}', 1, 2)
- check('[file for str(file) in []\n])', 1, 11)
+ check('[file for str(file) in []\n]', 1, 11)
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)