diff options
Diffstat (limited to 'test/arch/mep/jit')
| -rw-r--r-- | test/arch/mep/jit/test_jit_branchjump.py | 2 | ||||
| -rw-r--r-- | test/arch/mep/jit/test_jit_repeat.py | 2 | ||||
| -rw-r--r-- | test/arch/mep/jit/ut_helpers_jit.py | 10 |
3 files changed, 8 insertions, 6 deletions
diff --git a/test/arch/mep/jit/test_jit_branchjump.py b/test/arch/mep/jit/test_jit_branchjump.py index baf602d8..1f932aa9 100644 --- a/test/arch/mep/jit/test_jit_branchjump.py +++ b/test/arch/mep/jit/test_jit_branchjump.py @@ -4,7 +4,7 @@ from ut_helpers_jit import jit_instructions -class TestBranchJump: +class TestBranchJump(object): def test_blti(self): """Test BLTI jit""" diff --git a/test/arch/mep/jit/test_jit_repeat.py b/test/arch/mep/jit/test_jit_repeat.py index 9fa64fa5..eaac1a1d 100644 --- a/test/arch/mep/jit/test_jit_repeat.py +++ b/test/arch/mep/jit/test_jit_repeat.py @@ -4,7 +4,7 @@ from ut_helpers_jit import jit_instructions -class TestRepeat: +class TestRepeat(object): def test_repeat(self): """Test REPEAT jit""" diff --git a/test/arch/mep/jit/ut_helpers_jit.py b/test/arch/mep/jit/ut_helpers_jit.py index 590c534f..999ead42 100644 --- a/test/arch/mep/jit/ut_helpers_jit.py +++ b/test/arch/mep/jit/ut_helpers_jit.py @@ -1,6 +1,8 @@ # Toshiba MeP-c4 - unit tests helpers # Guillaume Valadon <guillaume@valadon.net> +from __future__ import print_function + from miasm2.analysis.machine import Machine from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE @@ -13,7 +15,7 @@ def jit_instructions(mn_str): mn_mep = machine.mn() # Assemble the instructions - asm = "" + asm = b"" for instr_str in mn_str.split("\n"): instr = mn_mep.fromstring(instr_str, "b") instr.mode = "b" @@ -40,10 +42,10 @@ def launch_tests(obj): test_methods = [name for name in dir(obj) if name.startswith("test")] for method in test_methods: - print method + print(method) try: getattr(obj, method)() except AttributeError as e: - print "Method not found: %s" % method + print("Method not found: %s" % method) assert(False) - print '-' * 42 + print('-' * 42) |