Skip to content

Commit

Permalink
Fix all errors introduced by new flake8 release
Browse files Browse the repository at this point in the history
Change-Id: Ie9c99433938542a6892dcf164d9f9f3625b44bd0
  • Loading branch information
andreykurilin committed May 12, 2020
1 parent be72fbb commit ab365e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rally/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def check(self, deployment):
# includes Exception cls with a message. By parsing it,
# we can get etype.
trace = res["traceback"].split("\n")
last_line = [l for l in trace if l][-1]
last_line = [line for line in trace if line][-1]
etype, _msg = last_line.split(":", 1)
else:
etype = "n/a"
Expand Down
2 changes: 1 addition & 1 deletion rally/common/plugin/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def trim(docstring):


def reindent(string):
return "\n".join(l.strip() for l in string.strip().split("\n"))
return "\n".join(line.strip() for line in string.strip().split("\n"))


def parse_docstring(docstring):
Expand Down
2 changes: 1 addition & 1 deletion tests/ci/rally_self_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def main():
results_dir = args.results_dir
rally(f"task report --html-static --out {results_dir}/self_report.html")
rally(f"task report --json --out {results_dir}/self_report.json")
rally(f"task sla-check")
rally("task sla-check")


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/plugins/task/exporters/elastic/test_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_generate(self, remote):
# the should be always empty line in the end
self.assertEqual("", data[-1])

data = [json.loads(l) for l in exporter._report]
data = [json.loads(line) for line in exporter._report]
self.assertIsInstance(data, list)
expected = [
{
Expand Down

0 comments on commit ab365e9

Please sign in to comment.