about summary refs log tree commit diff stats
path: root/test/analysis/dg_check.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-02-25 11:09:54 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-03-05 16:52:49 +0100
commit02bbb30efea4980c9d133947cbbf69fb599071ad (patch)
tree3fea6826fcc5354840a27cb1dc99ff31eef81896 /test/analysis/dg_check.py
parenteab809932871f91d6f4aa770fc321af9e156e0f5 (diff)
downloadmiasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz
miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip
Support python2/python3
Diffstat (limited to 'test/analysis/dg_check.py')
-rw-r--r--test/analysis/dg_check.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/analysis/dg_check.py b/test/analysis/dg_check.py
index dd662079..a50855ef 100644
--- a/test/analysis/dg_check.py
+++ b/test/analysis/dg_check.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
 from pdb import pm
 import sys
 import subprocess
@@ -12,9 +13,7 @@ expected = json.load(open(expected_file))
 result = json.loads(stdout)
 
 
-expected.sort()
-result.sort()
+assert len(expected) == len(result)
 
-print expected
-print result
-assert expected == result
+assert all(r in result for r in expected)
+assert all(r in expected for r in result)