diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-02-25 11:09:54 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-05 16:52:49 +0100 |
| commit | 02bbb30efea4980c9d133947cbbf69fb599071ad (patch) | |
| tree | 3fea6826fcc5354840a27cb1dc99ff31eef81896 /test/core/locationdb.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'test/core/locationdb.py')
| -rw-r--r-- | test/core/locationdb.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/core/locationdb.py b/test/core/locationdb.py index 61bc4563..3db760d8 100644 --- a/test/core/locationdb.py +++ b/test/core/locationdb.py @@ -1,3 +1,4 @@ +from builtins import str from miasm2.core.locationdb import LocationDB @@ -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) |