diff options
| author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-06-29 20:49:54 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-29 20:49:54 (GMT) |
| commit | 7b2d94d87513967b357c658c6e7e1b8c8d02487d (patch) | |
| tree | bdd79e2c20b235f3d4c1272c8c8e2f1880bfb129 /Lib/test/test_compiler_codegen.py | |
| parent | 6e9f83d9aee34192de5d0ef7285be23514911ccd (diff) | |
| download | cpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.zip cpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.tar.gz cpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.tar.bz2 | |
GH-106008: Make implicit boolean conversions explicit (GH-106003)
Diffstat (limited to 'Lib/test/test_compiler_codegen.py')
| -rw-r--r-- | Lib/test/test_compiler_codegen.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_compiler_codegen.py b/Lib/test/test_compiler_codegen.py index ea57df9..d99bb8c 100644 --- a/Lib/test/test_compiler_codegen.py +++ b/Lib/test/test_compiler_codegen.py @@ -18,6 +18,7 @@ class IsolatedCodeGenTests(CodegenTestCase): expected = [ ('RESUME', 0, 0), ('LOAD_CONST', 0, 1), + ('TO_BOOL', 0, 1), ('POP_JUMP_IF_FALSE', false_lbl := self.Label(), 1), ('LOAD_CONST', 1, 1), ('JUMP', exit_lbl := self.Label()), |
