diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-10-15 16:02:06 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-10-15 16:02:06 -0700 |
commit | 3eac0cf37869aca0f4cf91f5ae703e63c6a97bbc (patch) | |
tree | 3ac8900bc714ffa3470fb7529f96b45bb20ffd11 /runtests.py | |
parent | 3f300baa3644c39416d60b8c117b4c57e9445005 (diff) | |
download | numpy-3eac0cf37869aca0f4cf91f5ae703e63c6a97bbc.tar.gz |
BUG: Fix runtests --benchmark-compare in python 3
`check_output` returns bytes, but the rest of the command line is unicode.
Diffstat (limited to 'runtests.py')
-rwxr-xr-x | runtests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py index 976a0cbbf..d06b241f0 100755 --- a/runtests.py +++ b/runtests.py @@ -250,10 +250,10 @@ def main(argv): # Fix commit ids (HEAD is local to current repo) out = subprocess.check_output(['git', 'rev-parse', commit_b]) - commit_b = out.strip() + commit_b = out.strip().decode('ascii') out = subprocess.check_output(['git', 'rev-parse', commit_a]) - commit_a = out.strip() + commit_a = out.strip().decode('ascii') cmd = ['asv', 'continuous', '-e', '-f', '1.05', commit_a, commit_b] + bench_args |