aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-10-03 01:51:32 +0800
committerDimitry <dimitry@ethereum.org>2018-10-03 06:10:43 +0800
commit580a0e4a2c92ca62c9c9f2613a67f330d3efa209 (patch)
tree40097ee09b2970c29c97436185caa7db9bd54476 /test.py
parentf4e6c9dafc25bbb78a7ee18d5fdeaecc48a01b7a (diff)
downloaddexon-tests-580a0e4a2c92ca62c9c9f2613a67f330d3efa209.tar.gz
dexon-tests-580a0e4a2c92ca62c9c9f2613a67f330d3efa209.tar.zst
dexon-tests-580a0e4a2c92ca62c9c9f2613a67f330d3efa209.zip
fix yml tests
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 03cc9f942..0189859ad 100755
--- a/test.py
+++ b/test.py
@@ -134,7 +134,7 @@ def hashFile(fname):
with open(fname ,"rb") as f:
k = sha3.keccak_256()
if fname.endswith(".json"):
- s = json.dumps(json.load(f), separators=(',', ':'))
+ s = json.dumps(json.load(f), sort_keys=True, separators=(',', ':'))
elif fname.endswith(".yml"):
s = json.dumps(yaml.load(f), sort_keys=True, separators=(',', ':'))
else: