Skip to content

Commit f101d3a

Browse files
Fix python 3.5 build (can't use f-strings yet)
1 parent a324784 commit f101d3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pylint/testutils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,13 @@ def _check_output_text(self, expected_messages, expected_lines, received_lines):
624624
expected_lines = self._split_lines(expected_messages, expected_lines)[0]
625625
missing = set(expected_lines) - set(received_lines)
626626
unexpected = set(received_lines) - set(expected_lines)
627-
error_msg = f"'{self._test_file.base}':\n"
627+
error_msg = "'{}':\n".format(self._test_file.base)
628628
if missing:
629629
error_msg += "- Missing lines:\n{str_missing}"
630630
for line in missing:
631-
error_msg += f"{line}\n"
631+
error_msg += "{}\n".format(line)
632632
if unexpected:
633633
error_msg += "- Unexpected lines:\n"
634634
for line in unexpected:
635-
error_msg += f"{line}\n"
635+
error_msg += "{}\n".format(line)
636636
assert expected_lines == received_lines, error_msg

0 commit comments

Comments
 (0)