more 2.7 control flow bug fixing

This commit is contained in:
rocky
2016-11-20 06:55:08 -05:00
parent 195bbc746b
commit 2bc316d6f0
3 changed files with 10 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ def test_if_in_for():
scan.build_lines_data(code, n)
scan.build_prev_op(n)
fjt = scan.find_jump_targets(False)
assert{64: [42], 67: [42], 42: [16, 41], 19: [6]} == fjt
assert{64: [42], 67: [42, 42], 42: [16, 41], 19: [6]} == fjt
assert scan.structs == [
{'start': 0, 'end': 80, 'type': 'root'},
{'start': 3, 'end': 64, 'type': 'if-then'},