diff options
Diffstat (limited to 'test/core/utils.py')
| -rwxr-xr-x | test/core/utils.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/core/utils.py b/test/core/utils.py index b506f904..0ca64f4e 100755 --- a/test/core/utils.py +++ b/test/core/utils.py @@ -2,17 +2,19 @@ #-*- coding:utf-8 -*- +from __future__ import print_function +from builtins import range import unittest class TestUtils(unittest.TestCase): def test_boundedDict(self): - from miasm2.core.utils import BoundedDict + from miasm.core.utils import BoundedDict # Use a callback def logger(key): - print "DELETE", key + print("DELETE", key) # Create a 5/2 dictionary bd = BoundedDict(5, 2, initialdata={"element": "value"}, @@ -26,9 +28,9 @@ class TestUtils(unittest.TestCase): # Increase 'element2' use _ = bd["element2"] - for i in xrange(6): + for i in range(6): bd[i] = i - print "Insert %d -> %s" % (i, bd) + print("Insert %d -> %s" % (i, bd)) assert(len(bd) == 2) |