summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-15 10:39:18 -0700
committerGitHub <noreply@github.com>2021-05-15 18:39:18 +0100
commit1afaaf5a2dc901377bb17f6fbe0cff7bf3b797e3 (patch)
tree8077b1daccf483b10e82c9fb0e036a898fa48f7e /Lib/test/test_exceptions.py
parenta38db84122b4f664ee30b9ffd55ce87b7f4517ac (diff)
downloadcpython-git-1afaaf5a2dc901377bb17f6fbe0cff7bf3b797e3.tar.gz
bpo-44143: Fix crash in the parser when raising tokenizer errors with an exception set (GH-26144) (GH-26148)
(cherry picked from commit 80b089179fa798c8ceaab2ff699c82499b2fcacd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 1fe479fbe8..aefdd7b769 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -242,6 +242,7 @@ class ExceptionTests(unittest.TestCase):
""", 9, 24)
check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4)
check("(1+)", 1, 4)
+ check("[interesting\nfoo()\n", 1, 1)
# Errors thrown by symtable.c
check('x = [(yield i) for i in range(3)]', 1, 5)