summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler_codegen.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-02-28 11:29:32 (GMT)
committerGitHub <noreply@github.com>2023-02-28 11:29:32 (GMT)
commit9f799ab0200f07d762eb8fe822c606e1b4b4866e (patch)
treefdd568649474ada4780ecf8b9d44fc78615f9640 /Lib/test/test_compiler_codegen.py
parent6b2d7c0ddb4d2afe298ee7c8f6a23c400f1465fd (diff)
downloadcpython-9f799ab0200f07d762eb8fe822c606e1b4b4866e.zip
cpython-9f799ab0200f07d762eb8fe822c606e1b4b4866e.tar.gz
cpython-9f799ab0200f07d762eb8fe822c606e1b4b4866e.tar.bz2
gh-87092: Make jump target label equal to the offset of the target in the instructions sequence (#102093)
Diffstat (limited to 'Lib/test/test_compiler_codegen.py')
-rw-r--r--Lib/test/test_compiler_codegen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_compiler_codegen.py b/Lib/test/test_compiler_codegen.py
index f2e14c1..022753e 100644
--- a/Lib/test/test_compiler_codegen.py
+++ b/Lib/test/test_compiler_codegen.py
@@ -37,11 +37,11 @@ class IsolatedCodeGenTests(CodegenTestCase):
('GET_ITER', None, 1),
loop_lbl := self.Label(),
('FOR_ITER', exit_lbl := self.Label(), 1),
- ('STORE_NAME', None, 1),
+ ('STORE_NAME', 1, 1),
('PUSH_NULL', None, 2),
- ('LOAD_NAME', None, 2),
- ('LOAD_NAME', None, 2),
- ('CALL', None, 2),
+ ('LOAD_NAME', 2, 2),
+ ('LOAD_NAME', 1, 2),
+ ('CALL', 1, 2),
('POP_TOP', None),
('JUMP', loop_lbl),
exit_lbl,