mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)
(cherry picked from commit b2ec37a722
)
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
This commit is contained in:
parent
ec6a1ea1ee
commit
13de28f17a
2 changed files with 20 additions and 5 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue