diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-12-13 21:06:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-12-13 21:06:19 (GMT) |
commit | 3cda0ed062892c46cbae43989ff59399e8042f58 (patch) | |
tree | 05e8b96522ce3b7774394365b73df0cdf1275806 /Lib/test/test_dis.py | |
parent | db9b65d9e5d9d39199714cfd15a26e46ab0eaae1 (diff) | |
download | cpython-3cda0ed062892c46cbae43989ff59399e8042f58.zip cpython-3cda0ed062892c46cbae43989ff59399e8042f58.tar.gz cpython-3cda0ed062892c46cbae43989ff59399e8042f58.tar.bz2 |
pop the loop block even for infinite while loops (closes #23048)
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index d1229fb..b8daff7 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -178,15 +178,16 @@ dis_compound_stmt_str = """\ 1 0 LOAD_CONST 0 (0) 3 STORE_NAME 0 (x) - 2 6 SETUP_LOOP 13 (to 22) + 2 6 SETUP_LOOP 14 (to 23) 3 >> 9 LOAD_NAME 0 (x) 12 LOAD_CONST 1 (1) 15 INPLACE_ADD 16 STORE_NAME 0 (x) 19 JUMP_ABSOLUTE 9 - >> 22 LOAD_CONST 2 (None) - 25 RETURN_VALUE + 22 POP_BLOCK + >> 23 LOAD_CONST 2 (None) + 26 RETURN_VALUE """ dis_traceback = """\ |