mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
bpo-44063: set the missing end locations on the compiler (GH-25956)
This commit is contained in:
parent
4a2d98a1e9
commit
b2ec37a722
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