aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/11_test_dch_main.py
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/11_test_dch_main.py
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/11_test_dch_main.py')
-rw-r--r--tests/11_test_dch_main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py
index 58b0eb94..f0f4560e 100644
--- a/tests/11_test_dch_main.py
+++ b/tests/11_test_dch_main.py
@@ -82,7 +82,7 @@ class TestScriptDch(DebianGitTestRepo):
ret = dch.main(options)
self.assertEqual(ret, 0)
cl = os.path.join(self.repo.path, 'debian/changelog')
- return open(cl).readlines()
+ return open(cl, encoding='utf-8').readlines()
def test_dch_main_new_upstream_version(self):
"""Test dch.py like gbp dch script does: new upstream version"""