You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
Back of some of the last disasm changes
Was failing test_disasm and I don't want to deal with that now. Add more 2.7 bytecode tests
This commit is contained in:
@@ -24,7 +24,7 @@ os.chdir(src_dir)
|
||||
def test_funcoutput(capfd, test_tuple, function_to_test):
|
||||
|
||||
in_file , filename_expected = test_tuple
|
||||
function_to_test(in_file)
|
||||
function_to_test(in_file, native=False)
|
||||
resout, reserr = capfd.readouterr()
|
||||
expected = open(filename_expected, "r").read()
|
||||
if resout != expected:
|
||||
|
1
pytest/testdata/if-2.7.right
vendored
1
pytest/testdata/if-2.7.right
vendored
@@ -7,5 +7,6 @@
|
||||
7 6 LOAD_NAME 1 'False'
|
||||
9 STORE_NAME 2 'b'
|
||||
12 JUMP_FORWARD 0 '15'
|
||||
15_0 COME_FROM '12'
|
||||
15 LOAD_CONST 0 ''
|
||||
18 RETURN_VALUE ''
|
||||
|
1
pytest/testdata/ifelse-2.7.right
vendored
1
pytest/testdata/ifelse-2.7.right
vendored
@@ -10,5 +10,6 @@
|
||||
|
||||
6 15 LOAD_CONST 1 2
|
||||
18 STORE_NAME 2 'd'
|
||||
21_0 COME_FROM '12'
|
||||
21 LOAD_CONST 2 ''
|
||||
24 RETURN_VALUE ''
|
||||
|
Reference in New Issue
Block a user