From 2f228eeaefdcb0ce36ed6aca791b240e379fb4d8 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 15 Dec 2017 20:46:22 -0500 Subject: [PATCH] Update pytest test_fjt.py for self.insts --- pytest/test_fjt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest/test_fjt.py b/pytest/test_fjt.py index 5fafea5f..fdfd3765 100644 --- a/pytest/test_fjt.py +++ b/pytest/test_fjt.py @@ -27,7 +27,9 @@ def test_if_in_for(): print(PYTHON_VERSION) if 2.7 <= PYTHON_VERSION <= 3.0 and not IS_PYPY: n = scan.setup_code(code) + bytecode = Bytecode(code, scan.opc) scan.build_lines_data(code, n) + scan.insts = list(bytecode) scan.build_prev_op(n) fjt = scan.find_jump_targets(False)