aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testutils
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-11-06 19:22:03 +0100
committerGuido Günther <agx@sigxcpu.org>2017-11-06 19:24:08 +0100
commite972bc97a47a57359fc6793f61e0022fd123b5d5 (patch)
tree7c46ad89c872c863e91e20dca5ea9ebf705b11b8 /tests/testutils
parentb1a03534a0bde38a21c844302eff1a0a0bd2e863 (diff)
tests: use encoding when opening files for checks and fixtures
so we don't fail on non utf-8 locales
Diffstat (limited to 'tests/testutils')
-rw-r--r--tests/testutils/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils/__init__.py b/tests/testutils/__init__.py
index febd9e2b..c17bc815 100644
--- a/tests/testutils/__init__.py
+++ b/tests/testutils/__init__.py
@@ -85,7 +85,7 @@ def get_dch_default_urgency():
pass
else:
if ret == 0:
- with open(tmp_dch_name) as dchfile:
+ with open(tmp_dch_name, encoding='utf-8') as dchfile:
header = dchfile.readline().strip()
urgency = header.split()[-1].replace('urgency=', '')
finally: