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:
rocky
2016-05-30 00:23:51 -04:00
parent 07d49d0f5b
commit 3e5876dd03
23 changed files with 2555 additions and 22 deletions

View File

@@ -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:

View File

@@ -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 ''

View File

@@ -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 ''