Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PEP-8 violations reported by flake8 on asv/runner.py #991

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions asv/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import json
import os
import sys
import re
import time
import tempfile
import itertools
Expand All @@ -23,7 +22,6 @@

from .console import log
from .results import Results, format_benchmark_result
from . import statistics
from . import util


Expand Down Expand Up @@ -314,7 +312,8 @@ def iter_run_items():
# Mark benchmark as failed
partial_info_time = None
log.warning('{0} skipped (setup_cache failed)'.format(name))
stderr = 'asv: setup_cache failed\n\n{}'.format(failed_setup_cache[setup_cache_key])
stderr = 'asv: setup_cache failed\n\n{}'.format(
failed_setup_cache[setup_cache_key])
res = fail_benchmark(benchmark, stderr=stderr)
results.add_result(benchmark, res,
selected_idx=selected_idx,
Expand Down Expand Up @@ -766,7 +765,7 @@ def _stdout_reader(self):
out = self.server_proc.stdout.read()
self.server_proc.stdout.close()
out = out.decode('utf-8', 'replace')
except Exception as exc:
except Exception:
import traceback
out = traceback.format_exc()

Expand Down