Skip to content

Commit

Permalink
Fix python 3.5 build (can't use f-strings yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Sep 10, 2020
1 parent 701f520 commit d92c8de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pylint/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,13 +624,13 @@ def _check_output_text(self, expected_messages, expected_lines, received_lines):
expected_lines = self._split_lines(expected_messages, expected_lines)[0]
missing = set(expected_lines) - set(received_lines)
unexpected = set(received_lines) - set(expected_lines)
error_msg = f"'{self._test_file.base}':\n"
error_msg = "'{}':\n".format(self._test_file.base)
if missing:
error_msg += "- Missing lines:\n{str_missing}"
for line in missing:
error_msg += f"{line}\n"
error_msg += "{}\n".format(line)
if unexpected:
error_msg += "- Unexpected lines:\n"
for line in unexpected:
error_msg += f"{line}\n"
error_msg += "{}\n".format(line)
assert expected_lines == received_lines, error_msg

0 comments on commit d92c8de

Please sign in to comment.