summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorBatuhan Taskaya <isidentical@gmail.com>2021-05-07 17:49:06 (GMT)
committerGitHub <noreply@github.com>2021-05-07 17:49:06 (GMT)
commitb2ec37a7224318d466e0877790ed740ce8b4867d (patch)
treebbbacaef4f46bf0e83cfa9500a40980bf0e170af /Lib/test/test_syntax.py
parent4a2d98a1e98de25c5114d11fcb0f9fedbb057e51 (diff)
downloadcpython-b2ec37a7224318d466e0877790ed740ce8b4867d.zip
cpython-b2ec37a7224318d466e0877790ed740ce8b4867d.tar.gz
cpython-b2ec37a7224318d466e0877790ed740ce8b4867d.tar.bz2
bpo-44063: set the missing end locations on the compiler (GH-25956)
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 0a910bc..9799697 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -1422,6 +1422,13 @@ def case(x):
case(34)
"""
compile(code, "<string>", "exec")
+
+ def test_multiline_compiler_error_points_to_the_end(self):
+ self._check_error(
+ "call(\na=1,\na=1\n)",
+ "keyword argument repeated",
+ lineno=3
+ )
def test_main():