mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-116034: fix location info on the error of a failed assertion (#116054)
This commit is contained in:
parent
31462d4de2
commit
6359141867
4 changed files with 20 additions and 2 deletions
|
@ -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("""\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue