mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-98461: Fix location of RETURN_VALUE in async generator bytecode. compiler_jump_if no longer needs a pointer to the loc. (GH-98494)
This commit is contained in:
parent
8aa1e994a5
commit
a1a8828e42
2 changed files with 44 additions and 57 deletions
|
@ -1283,7 +1283,7 @@ assert (a > 0 and
|
|||
self.assertOpcodeSourcePositionIs(compiled_code, 'YIELD_VALUE',
|
||||
line=1, end_line=2, column=1, end_column=8, occurrence=2)
|
||||
self.assertOpcodeSourcePositionIs(compiled_code, 'RETURN_VALUE',
|
||||
line=6, end_line=6, column=23, end_column=30, occurrence=1)
|
||||
line=1, end_line=6, column=0, end_column=32, occurrence=1)
|
||||
|
||||
def test_multiline_list_comprehension(self):
|
||||
snippet = """\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue