From 43ab6e2ef5f4cf6c905351dc6484dd204e34f72f Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Tue, 27 Dec 2022 14:42:20 +0100 Subject: [PATCH] Add missing empty line in error output of Trivia unit test (#5659) Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- tests/cogs/test_trivia.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cogs/test_trivia.py b/tests/cogs/test_trivia.py index 9aaed0275..8d8d9baae 100644 --- a/tests/cogs/test_trivia.py +++ b/tests/cogs/test_trivia.py @@ -21,7 +21,7 @@ def test_trivia_lists(): problem_lists.append((l.stem, f"YAML error:\n{e!s}")) if problem_lists: - msg = "" - for name, error in problem_lists: - msg += f"- {name}:\n{textwrap.indent(error, ' ')}" + msg = "\n".join( + f"- {name}:\n{textwrap.indent(error, ' ')}" for name, error in problem_lists + ) raise TypeError("The following lists contain errors:\n" + msg)