summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
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():