Update benchmark run_all.py for Python3

This commit is contained in:
Ivor Blockley
2017-07-18 17:19:09 +10:00
parent 0fa6da74cc
commit 31d0444a82

View File

@@ -39,7 +39,7 @@ def run_one(prefix, name, mode, iters, faster, compression):
data = {} data = {}
if p.returncode != 0: if p.returncode != 0:
sys.stderr.write(' '.join(command) + ' failed to run with errors: \n' + p.stderr.read() + '\n') sys.stderr.write(' '.join(command) + ' failed to run with errors: \n' + p.stderr.read().decode(sys.stdout.encoding) + '\n')
sys.stderr.flush() sys.stderr.flush()
data['type'] = res_type data['type'] = res_type