summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-02 21:35:17 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-26 15:27:11 +1000
commit67fdfebe645d5df69cfa01b81a6776ecae3b6625 (patch)
tree26dbaaa4eb26e5aa2a1e37f5bd05495e2863241d
parent5889cf58dbab8eae52bdd0ad592556bd7aff06df (diff)
tests: Update tests for changes to opcode ordering.
-rw-r--r--tests/cmdline/cmd_parsetree.py.exp2
-rw-r--r--tests/cmdline/cmd_showbc.py.exp20
-rw-r--r--tests/cmdline/cmd_verbose.py.exp2
-rw-r--r--tests/import/mpy_native.py4
4 files changed, 14 insertions, 14 deletions
diff --git a/tests/cmdline/cmd_parsetree.py.exp b/tests/cmdline/cmd_parsetree.py.exp
index 12a1bfbe9..58d419dc4 100644
--- a/tests/cmdline/cmd_parsetree.py.exp
+++ b/tests/cmdline/cmd_parsetree.py.exp
@@ -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)
diff --git a/tests/cmdline/cmd_showbc.py.exp b/tests/cmdline/cmd_showbc.py.exp
index 5e8f762ef..f1ce02b67 100644
--- a/tests/cmdline/cmd_showbc.py.exp
+++ b/tests/cmdline/cmd_showbc.py.exp
@@ -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)
diff --git a/tests/cmdline/cmd_verbose.py.exp b/tests/cmdline/cmd_verbose.py.exp
index f56226129..371c8c4b5 100644
--- a/tests/cmdline/cmd_verbose.py.exp
+++ b/tests/cmdline/cmd_verbose.py.exp
@@ -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)
diff --git a/tests/import/mpy_native.py b/tests/import/mpy_native.py
index e03d14e2e..f1d862d29 100644
--- a/tests/import/mpy_native.py
+++ b/tests/import/mpy_native.py
@@ -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