mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Add missing empty line in error output of Trivia unit test (#5659)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
parent
14f142da2b
commit
43ab6e2ef5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user