[diffoscope] 01/03: Make sure to read HTML reports as utf-8 in tests
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Dec 18 16:49:16 CET 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit 050b075ea1d997a2decd92cc98abb37fde788f29
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Dec 18 15:07:03 2015 +0000
Make sure to read HTML reports as utf-8 in tests
They contain utf-8 characters since 73b1cf40b.
---
tests/test_main.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_main.py b/tests/test_main.py
index dc275be..501a4c7 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -131,7 +131,7 @@ def test_html_option_with_file(tmpdir, capsys):
out, err = capsys.readouterr()
assert err == ''
assert out == ''
- with open(report_path, 'r') as f:
+ with open(report_path, 'r', encoding='utf-8') as f:
assert 'meta name="generator" content="diffoscope"' in f.read()
def test_html_option_with_stdout(capsys):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list