diff options
Diffstat (limited to 'benchmark/benchmark.py')
-rw-r--r-- | benchmark/benchmark.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index ef7417c..2009eda 100644 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -18,6 +18,7 @@ from __future__ import print_function import atexit import math import os +import six import subprocess import sys import timeit @@ -34,6 +35,9 @@ def run_plain(cmd): stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = obj.communicate() + if six.PY3: + out = os.fsdecode(out) + err = os.fsdecode(err) return obj.returncode, out, err |