Skip to content

Commit 67fdfeb

Browse files
committed
tests: Update tests for changes to opcode ordering.
1 parent 5889cf5 commit 67fdfeb

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

tests/cmdline/cmd_parsetree.py.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
File cmdline/cmd_parsetree.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes)
3333
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
3434
########
35-
\.\+5b
35+
\.\+63
3636
arg names:
3737
(N_STATE 5)
3838
(N_EXC_STACK 0)

tests/cmdline/cmd_showbc.py.exp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
File cmdline/cmd_showbc.py, code block '<module>' (descriptor: \.\+, bytecode @\.\+ bytes)
22
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
33
########
4-
\.\+5b
4+
\.\+63
55
arg names:
66
(N_STATE 3)
77
(N_EXC_STACK 0)
@@ -370,7 +370,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
370370
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
371371
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
372372
########
373-
\.\+5b
373+
\.\+63
374374
arg names: a
375375
(N_STATE 5)
376376
(N_EXC_STACK 0)
@@ -388,7 +388,7 @@ arg names: a
388388
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
389389
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
390390
########
391-
\.\+5b
391+
\.\+63
392392
arg names:
393393
(N_STATE 2)
394394
(N_EXC_STACK 0)
@@ -412,7 +412,7 @@ arg names:
412412
File cmdline/cmd_showbc.py, code block 'Class' (descriptor: \.\+, bytecode @\.\+ bytes)
413413
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
414414
########
415-
\.\+5b
415+
\.\+63
416416
arg names:
417417
(N_STATE 1)
418418
(N_EXC_STACK 0)
@@ -428,7 +428,7 @@ arg names:
428428
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
429429
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
430430
########
431-
\.\+5b
431+
\.\+63
432432
arg names: self
433433
(N_STATE 4)
434434
(N_EXC_STACK 0)
@@ -445,7 +445,7 @@ arg names: self
445445
File cmdline/cmd_showbc.py, code block '<genexpr>' (descriptor: \.\+, bytecode @\.\+ bytes)
446446
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
447447
########
448-
\.\+5b
448+
\.\+63
449449
arg names: * * *
450450
(N_STATE 9)
451451
(N_EXC_STACK 0)
@@ -469,7 +469,7 @@ arg names: * * *
469469
File cmdline/cmd_showbc.py, code block '<listcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
470470
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
471471
########
472-
\.\+5b
472+
\.\+63
473473
arg names: * * *
474474
(N_STATE 10)
475475
(N_EXC_STACK 0)
@@ -490,7 +490,7 @@ arg names: * * *
490490
File cmdline/cmd_showbc.py, code block '<dictcomp>' (descriptor: \.\+, bytecode @\.\+ bytes)
491491
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
492492
########
493-
\.\+5b
493+
\.\+63
494494
arg names: * * *
495495
(N_STATE 11)
496496
(N_EXC_STACK 0)
@@ -511,7 +511,7 @@ arg names: * * *
511511
File cmdline/cmd_showbc.py, code block 'closure' (descriptor: \.\+, bytecode @\.\+ bytes)
512512
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
513513
########
514-
\.\+5b
514+
\.\+63
515515
arg names: *
516516
(N_STATE 4)
517517
(N_EXC_STACK 0)
@@ -530,7 +530,7 @@ arg names: *
530530
File cmdline/cmd_showbc.py, code block 'f' (descriptor: \.\+, bytecode @\.\+ bytes)
531531
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
532532
########
533-
\.\+5b
533+
\.\+63
534534
arg names: * b
535535
(N_STATE 4)
536536
(N_EXC_STACK 0)

tests/cmdline/cmd_verbose.py.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ File cmdline/cmd_verbose.py, code block '<module>' (descriptor: \.\+, bytecode \
22
Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
33
02 \.\+
44
########
5-
\.\+5b
5+
\.\+63
66
arg names:
77
(N_STATE 2)
88
(N_EXC_STACK 0)

tests/import/mpy_native.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def open(self, path, mode):
5858

5959
b'\x38' # n bytes, bytecode
6060
b'\x01\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\xff' # prelude
61-
b'\x11' # LOAD_CONST_NONE
62-
b'\x5b' # RETURN_VALUE
61+
b'\x51' # LOAD_CONST_NONE
62+
b'\x63' # RETURN_VALUE
6363

6464
b'\x02m\x02m\x00\x02' # simple_name, source_file, n_obj, n_raw_code
6565

0 commit comments

Comments
 (0)