mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Trivia] Make sure that test will use utf-8 encoding (#2565)
This commit is contained in:
parent
136e781c7f
commit
972fbecc94
@ -8,7 +8,7 @@ def test_trivia_lists():
|
|||||||
assert list_names
|
assert list_names
|
||||||
problem_lists = []
|
problem_lists = []
|
||||||
for l in list_names:
|
for l in list_names:
|
||||||
with l.open() as f:
|
with l.open(encoding="utf-8") as f:
|
||||||
try:
|
try:
|
||||||
dict_ = yaml.safe_load(f)
|
dict_ = yaml.safe_load(f)
|
||||||
except yaml.error.YAMLError as e:
|
except yaml.error.YAMLError as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user