From ab8f00ae7bdc5fe373df4ca1dc684d699608cc6f Mon Sep 17 00:00:00 2001 From: Flame442 <34169552+Flame442@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:52:56 -0400 Subject: [PATCH] [Trivia] Fix string interpolation in test errors (#5955) Co-authored-by: Jakub Kuczys --- tests/cogs/test_trivia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cogs/test_trivia.py b/tests/cogs/test_trivia.py index a5795495e..8aa25d587 100644 --- a/tests/cogs/test_trivia.py +++ b/tests/cogs/test_trivia.py @@ -26,7 +26,7 @@ def test_trivia_lists(): except InvalidListError as exc: e = exc.__cause__ if isinstance(e, SchemaError): - problem_lists.append((l.stem, f"SCHEMA error:\n{e!s}")) + problem_lists.append((l.stem, f"SCHEMA error:\n{format_schema_error(e)}")) else: problem_lists.append((l.stem, f"YAML error:\n{e!s}"))