tests/cmdline: Update tests to pass with latest changes to bytecode.
This commit is contained in:
parent
cb6300697c
commit
861b001783
|
@ -31,7 +31,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
\.\+5b
|
\.\+5b
|
||||||
arg names:
|
arg names:
|
||||||
(N_STATE 2)
|
(N_STATE 5)
|
||||||
(N_EXC_STACK 0)
|
(N_EXC_STACK 0)
|
||||||
bc=-1 line=1
|
bc=-1 line=1
|
||||||
bc=0 line=4
|
bc=0 line=4
|
||||||
|
@ -43,7 +43,7 @@ arg names:
|
||||||
bc=32 line=10
|
bc=32 line=10
|
||||||
bc=37 line=11
|
bc=37 line=11
|
||||||
00 BUILD_TUPLE 0
|
00 BUILD_TUPLE 0
|
||||||
02 GET_ITER
|
02 GET_ITER_STACK
|
||||||
03 FOR_ITER 12
|
03 FOR_ITER 12
|
||||||
06 STORE_NAME i
|
06 STORE_NAME i
|
||||||
09 JUMP 3
|
09 JUMP 3
|
||||||
|
|
|
@ -31,7 +31,7 @@ File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ byt
|
||||||
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
\.\+rg names:
|
\.\+rg names:
|
||||||
(N_STATE 23)
|
(N_STATE 22)
|
||||||
(N_EXC_STACK 2)
|
(N_EXC_STACK 2)
|
||||||
(INIT_CELL 14)
|
(INIT_CELL 14)
|
||||||
(INIT_CELL 15)
|
(INIT_CELL 15)
|
||||||
|
@ -251,10 +251,6 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
\\d\+ LOAD_FAST 1
|
\\d\+ LOAD_FAST 1
|
||||||
\\d\+ POP_TOP
|
\\d\+ POP_TOP
|
||||||
\\d\+ JUMP \\d\+
|
\\d\+ JUMP \\d\+
|
||||||
\\d\+ POP_TOP
|
|
||||||
\\d\+ POP_TOP
|
|
||||||
\\d\+ POP_TOP
|
|
||||||
\\d\+ POP_TOP
|
|
||||||
\\d\+ SETUP_FINALLY \\d\+
|
\\d\+ SETUP_FINALLY \\d\+
|
||||||
\\d\+ SETUP_EXCEPT \\d\+
|
\\d\+ SETUP_EXCEPT \\d\+
|
||||||
\\d\+ JUMP \\d\+
|
\\d\+ JUMP \\d\+
|
||||||
|
@ -439,58 +435,67 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
\.\+5b
|
\.\+5b
|
||||||
arg names: * * *
|
arg names: * * *
|
||||||
(N_STATE 6)
|
(N_STATE 9)
|
||||||
(N_EXC_STACK 0)
|
(N_EXC_STACK 0)
|
||||||
bc=-\\d\+ line=1
|
bc=-\\d\+ line=1
|
||||||
00 LOAD_FAST 2
|
00 LOAD_NULL
|
||||||
01 FOR_ITER 17
|
01 LOAD_FAST 2
|
||||||
04 STORE_FAST 3
|
02 LOAD_NULL
|
||||||
05 LOAD_DEREF 1
|
03 LOAD_NULL
|
||||||
07 POP_JUMP_IF_FALSE 1
|
04 FOR_ITER 20
|
||||||
10 LOAD_DEREF 0
|
07 STORE_FAST 3
|
||||||
12 YIELD_VALUE
|
08 LOAD_DEREF 1
|
||||||
13 POP_TOP
|
10 POP_JUMP_IF_FALSE 4
|
||||||
14 JUMP 1
|
13 LOAD_DEREF 0
|
||||||
17 LOAD_CONST_NONE
|
15 YIELD_VALUE
|
||||||
18 RETURN_VALUE
|
16 POP_TOP
|
||||||
|
17 JUMP 4
|
||||||
|
20 LOAD_CONST_NONE
|
||||||
|
21 RETURN_VALUE
|
||||||
File cmdline/cmd_showbc.py, code block '<listcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
|
File cmdline/cmd_showbc.py, code block '<listcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
|
||||||
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
\.\+5b
|
\.\+5b
|
||||||
arg names: * * *
|
arg names: * * *
|
||||||
(N_STATE 7)
|
(N_STATE 10)
|
||||||
(N_EXC_STACK 0)
|
(N_EXC_STACK 0)
|
||||||
bc=-\\d\+ line=1
|
bc=-\\d\+ line=1
|
||||||
00 BUILD_LIST 0
|
00 BUILD_LIST 0
|
||||||
02 LOAD_FAST 2
|
02 LOAD_NULL
|
||||||
03 FOR_ITER 19
|
03 LOAD_FAST 2
|
||||||
06 STORE_FAST 3
|
04 LOAD_NULL
|
||||||
07 LOAD_DEREF 1
|
05 LOAD_NULL
|
||||||
09 POP_JUMP_IF_FALSE 3
|
06 FOR_ITER 22
|
||||||
12 LOAD_DEREF 0
|
09 STORE_FAST 3
|
||||||
14 STORE_COMP 8
|
10 LOAD_DEREF 1
|
||||||
16 JUMP 3
|
12 POP_JUMP_IF_FALSE 6
|
||||||
19 RETURN_VALUE
|
15 LOAD_DEREF 0
|
||||||
|
17 STORE_COMP 20
|
||||||
|
19 JUMP 6
|
||||||
|
22 RETURN_VALUE
|
||||||
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
|
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
|
||||||
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
\.\+5b
|
\.\+5b
|
||||||
arg names: * * *
|
arg names: * * *
|
||||||
(N_STATE 8)
|
(N_STATE 11)
|
||||||
(N_EXC_STACK 0)
|
(N_EXC_STACK 0)
|
||||||
bc=-\\d\+ line=1
|
bc=-\\d\+ line=1
|
||||||
########
|
########
|
||||||
00 BUILD_MAP 0
|
00 BUILD_MAP 0
|
||||||
02 LOAD_FAST 2
|
02 LOAD_NULL
|
||||||
03 FOR_ITER 21
|
03 LOAD_FAST 2
|
||||||
06 STORE_FAST 3
|
04 LOAD_NULL
|
||||||
07 LOAD_DEREF 1
|
05 LOAD_NULL
|
||||||
09 POP_JUMP_IF_FALSE 3
|
06 FOR_ITER 24
|
||||||
12 LOAD_DEREF 0
|
09 STORE_FAST 3
|
||||||
14 LOAD_DEREF 0
|
10 LOAD_DEREF 1
|
||||||
16 STORE_COMP 13
|
12 POP_JUMP_IF_FALSE 6
|
||||||
18 JUMP 3
|
15 LOAD_DEREF 0
|
||||||
21 RETURN_VALUE
|
17 LOAD_DEREF 0
|
||||||
|
19 STORE_COMP 25
|
||||||
|
21 JUMP 6
|
||||||
|
24 RETURN_VALUE
|
||||||
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
|
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
|
||||||
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
|
||||||
########
|
########
|
||||||
|
|
Loading…
Reference in New Issue