Skip to content
Snippets Groups Projects
Commit ad367a01 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

tests.presenters: Prevent FTBFS by loading fixtures as UTF-8 in case...

tests.presenters: Prevent FTBFS by loading fixtures as UTF-8 in case surrounding terminal is not Unicode-aware. (Closes: #852926)
parent 1e5d30b4
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ def run(capsys, *args):
return out
def data(filename):
with open(os.path.join(DATA_DIR, filename)) as f:
with open(os.path.join(DATA_DIR, filename), encoding='utf-8') as f:
return f.read()
def extract_body(val):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment