diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-07 20:40:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 20:40:09 (GMT) |
commit | 13de28f17af02563cb8c6d0f6da3c178a4241ff3 (patch) | |
tree | f63cd3dee8586c5dcfceb0cd0089bad23fb211c8 /Lib/test/test_syntax.py | |
parent | ec6a1ea1ee67a5e7c8ee5f5b1541bc1c6e17a373 (diff) | |
download | cpython-13de28f17af02563cb8c6d0f6da3c178a4241ff3.zip cpython-13de28f17af02563cb8c6d0f6da3c178a4241ff3.tar.gz cpython-13de28f17af02563cb8c6d0f6da3c178a4241ff3.tar.bz2 |
bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)
(cherry picked from commit b2ec37a7224318d466e0877790ed740ce8b4867d)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 7 |
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(): |