diff options
Diffstat (limited to 'Lib/test/test_compiler_codegen.py')
-rw-r--r-- | Lib/test/test_compiler_codegen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_compiler_codegen.py b/Lib/test/test_compiler_codegen.py index 022753e0c9..ea57df9cd2 100644 --- a/Lib/test/test_compiler_codegen.py +++ b/Lib/test/test_compiler_codegen.py @@ -25,6 +25,8 @@ class IsolatedCodeGenTests(CodegenTestCase): ('LOAD_CONST', 2, 1), exit_lbl, ('POP_TOP', None), + ('LOAD_CONST', 3), + ('RETURN_VALUE', None), ] self.codegen_test(snippet, expected) @@ -46,5 +48,7 @@ class IsolatedCodeGenTests(CodegenTestCase): ('JUMP', loop_lbl), exit_lbl, ('END_FOR', None), + ('LOAD_CONST', 0), + ('RETURN_VALUE', None), ] self.codegen_test(snippet, expected) |