[Reproducible-commits] [diffoscope] 04/13: Read text report as UTF-8 encoded in test_text_option_with_file
Jérémy Bobbio
lunar at moszumanska.debian.org
Thu Oct 15 16:04:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit 040bcd2d51a2e1e49c29934fd12091bfa3f1172c
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Oct 14 13:18:53 2015 +0000
Read text report as UTF-8 encoded in test_text_option_with_file
Closes: #801766
---
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 a79e9bb..c3f6ccb 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -101,7 +101,7 @@ def test_text_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 f.read().startswith('--- ')
def test_text_option_with_stdiout(capsys):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list