summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-12-07 13:02:15 (GMT)
committerGitHub <noreply@github.com>2021-12-07 13:02:15 (GMT)
commit1c7a1c3be08ee911d347fffd2716f3911ba751f9 (patch)
tree1676eca102b29d3abb4fa6162b75e28a5c937a59 /Lib
parentcf7eaa4617295747ee5646c4e2b7e7a16d7c64ab (diff)
downloadcpython-1c7a1c3be08ee911d347fffd2716f3911ba751f9.zip
cpython-1c7a1c3be08ee911d347fffd2716f3911ba751f9.tar.gz
cpython-1c7a1c3be08ee911d347fffd2716f3911ba751f9.tar.bz2
bpo-46004: Fix error location for loops with invalid targets (GH-29959)
Diffstat (limited to 'Lib')
-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 e4b7b8f..a954ecb 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -234,6 +234,7 @@ class ExceptionTests(unittest.TestCase):
check("ages = {'Alice'=22, 'Bob'=23}", 1, 16)
check('match ...:\n case {**rest, "key": value}:\n ...', 2, 19)
check("[a b c d e f]", 1, 2)
+ check("for x yfff:", 1, 7)
# Errors thrown by compile.c
check('class foo:return 1', 1, 11)