From 972fbecc94ef548be9bbaabee653bb66cbec5c81 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Tue, 9 Apr 2019 23:03:34 +0200 Subject: [PATCH] [V3 Trivia] Make sure that test will use utf-8 encoding (#2565) --- 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 528c74304..3c0fef1a0 100644 --- a/tests/cogs/test_trivia.py +++ b/tests/cogs/test_trivia.py @@ -8,7 +8,7 @@ def test_trivia_lists(): assert list_names problem_lists = [] for l in list_names: - with l.open() as f: + with l.open(encoding="utf-8") as f: try: dict_ = yaml.safe_load(f) except yaml.error.YAMLError as e: