diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-05-09 13:33:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 13:33:40 (GMT) |
commit | ca95edf177e3c10e10d7011ed52619b1312cf15e (patch) | |
tree | 34c0d8088f6f65b1d8890874391ee008d3f6229e /Lib | |
parent | c21f82876089f3e9a7b1e706c029664b799fa659 (diff) | |
download | cpython-ca95edf177e3c10e10d7011ed52619b1312cf15e.zip cpython-ca95edf177e3c10e10d7011ed52619b1312cf15e.tar.gz cpython-ca95edf177e3c10e10d7011ed52619b1312cf15e.tar.bz2 |
gh-104240: return code unit metadata from codegen (#104300)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/support/bytecode_helper.py | 2 | ||||
-rw-r--r-- | Lib/test/test_compiler_assemble.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support/bytecode_helper.py b/Lib/test/support/bytecode_helper.py index 357ec44..7b577f5 100644 --- a/Lib/test/support/bytecode_helper.py +++ b/Lib/test/support/bytecode_helper.py @@ -124,7 +124,7 @@ class CompilationStepTestCase(unittest.TestCase): class CodegenTestCase(CompilationStepTestCase): def generate_code(self, ast): - insts = compiler_codegen(ast, "my_file.py", 0) + insts, _ = compiler_codegen(ast, "my_file.py", 0) return insts diff --git a/Lib/test/test_compiler_assemble.py b/Lib/test/test_compiler_assemble.py index 96c1691..0bd7a09 100644 --- a/Lib/test/test_compiler_assemble.py +++ b/Lib/test/test_compiler_assemble.py @@ -52,7 +52,7 @@ class IsolatedAssembleTests(AssemblerTestCase): 'filename' : 'avg.py', 'name' : 'avg', 'qualname' : 'stats.avg', - 'consts' : [2], + 'consts' : {2 : 0}, 'argcount' : 2, 'varnames' : {'x' : 0, 'y' : 1}, } |