tests: Update tests for changes to opcode ordering.

This commit is contained in:
Damien George 2019-09-02 21:35:17 +10:00
parent 5889cf58db
commit 67fdfebe64
4 changed files with 14 additions and 14 deletions

View File

@ -32,7 +32,7 @@
File cmdline/cmd_parsetree.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names:
(N_STATE 5)
(N_EXC_STACK 0)

View File

@ -1,7 +1,7 @@
File cmdline/cmd_showbc.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names:
(N_STATE 3)
(N_EXC_STACK 0)
@ -370,7 +370,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: a
(N_STATE 5)
(N_EXC_STACK 0)
@ -388,7 +388,7 @@ arg names: a
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names:
(N_STATE 2)
(N_EXC_STACK 0)
@ -412,7 +412,7 @@ arg names:
File cmdline/cmd_showbc.py, code block 'Class' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names:
(N_STATE 1)
(N_EXC_STACK 0)
@ -428,7 +428,7 @@ arg names:
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: self
(N_STATE 4)
(N_EXC_STACK 0)
@ -445,7 +445,7 @@ arg names: self
File cmdline/cmd_showbc.py, code block '<genexpr>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: * * *
(N_STATE 9)
(N_EXC_STACK 0)
@ -469,7 +469,7 @@ arg names: * * *
File cmdline/cmd_showbc.py, code block '<listcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: * * *
(N_STATE 10)
(N_EXC_STACK 0)
@ -490,7 +490,7 @@ arg names: * * *
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: * * *
(N_STATE 11)
(N_EXC_STACK 0)
@ -511,7 +511,7 @@ arg names: * * *
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: *
(N_STATE 4)
(N_EXC_STACK 0)
@ -530,7 +530,7 @@ arg names: *
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
\.\+63
arg names: * b
(N_STATE 4)
(N_EXC_STACK 0)

View File

@ -2,7 +2,7 @@ File cmdline/cmd_verbose.py, code block '<module>' (descriptor: \.\+, bytecode \
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
02 \.\+
########
\.\+5b
\.\+63
arg names:
(N_STATE 2)
(N_EXC_STACK 0)

View File

@ -58,8 +58,8 @@ user_files = {
b'\x38' # n bytes, bytecode
b'\x01\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\xff' # prelude
b'\x11' # LOAD_CONST_NONE
b'\x5b' # RETURN_VALUE
b'\x51' # LOAD_CONST_NONE
b'\x63' # RETURN_VALUE
b'\x02m\x02m\x00\x02' # simple_name, source_file, n_obj, n_raw_code