bpo-44063: set the missing end locations on the compiler (GH-25956)

This commit is contained in:
Batuhan Taskaya 2021-05-07 20:49:06 +03:00 committed by GitHub
parent 4a2d98a1e9
commit b2ec37a722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 5 deletions

View file

@ -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():