[3.12] gh-116034: fix location info on the error of a failed assertion (#116054)

This commit is contained in:
Irit Katriel 2024-02-29 12:36:54 +00:00 committed by GitHub
parent 31462d4de2
commit 6359141867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 2 deletions

View file

@ -1412,7 +1412,7 @@ class TestSourcePositions(unittest.TestCase):
self.assertOpcodeSourcePositionIs(compiled_code, 'CALL',
line=1, end_line=3, column=0, end_column=30, occurrence=1)
self.assertOpcodeSourcePositionIs(compiled_code, 'RAISE_VARARGS',
line=1, end_line=3, column=0, end_column=30, occurrence=1)
line=1, end_line=3, column=8, end_column=16, occurrence=1)
def test_multiline_generator_expression(self):
snippet = textwrap.dedent("""\