mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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}"))
|
problem_lists.append((l.stem, f"YAML error:\n{e!s}"))
|
||||||
|
|
||||||
if problem_lists:
|
if problem_lists:
|
||||||
msg = ""
|
msg = "\n".join(
|
||||||
for name, error in problem_lists:
|
f"- {name}:\n{textwrap.indent(error, ' ')}" for name, error in problem_lists
|
||||||
msg += f"- {name}:\n{textwrap.indent(error, ' ')}"
|
)
|
||||||
raise TypeError("The following lists contain errors:\n" + msg)
|
raise TypeError("The following lists contain errors:\n" + msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user