diff options
| author | Camille Mougey <commial@gmail.com> | 2019-03-07 14:37:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-07 14:37:07 +0100 |
| commit | 4c2320b46250a8d6f8774e1218544b72a154cd8e (patch) | |
| tree | b67e7b072439f84109bd39dad8ed7f3f135224f8 /test/core/locationdb.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| parent | 26c1075723a02984da6d3bc7423c5c0c43082dc3 (diff) | |
| download | miasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.tar.gz miasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.zip | |
Merge pull request #990 from serpilliere/support_python2_python3
Support python2 python3
Diffstat (limited to 'test/core/locationdb.py')
| -rw-r--r-- | test/core/locationdb.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/core/locationdb.py b/test/core/locationdb.py index 61bc4563..b6d7d8e0 100644 --- a/test/core/locationdb.py +++ b/test/core/locationdb.py @@ -1,4 +1,5 @@ -from miasm2.core.locationdb import LocationDB +from builtins import str +from miasm.core.locationdb import LocationDB # Basic tests (LocationDB description) @@ -57,9 +58,9 @@ loc_db.consistency_check() # Names manipulation loc_key5 = loc_db.add_location() -name1 = "name1" -name2 = "name2" -name3 = "name3" +name1 = b"name1" +name2 = b"name2" +name3 = b"name3" assert len(loc_db.get_location_names(loc_key5)) == 0 loc_db.add_location_name(loc_key5, name1) loc_db.add_location_name(loc_key5, name2) |