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:
Jakub Kuczys 2022-12-27 14:42:20 +01:00 committed by GitHub
parent 14f142da2b
commit 43ab6e2ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)