[Reproducible-commits] [diffoscope] 07/23: XXX binary mode

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Sep 19 23:18:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/py3
in repository diffoscope.

commit e57ed7f491f7ccecff5cd380d5518036ea7ad265
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Fri Sep 18 16:25:00 2015 +0200

    XXX binary  mode
---
 tests/comparators/test_text.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/comparators/test_text.py b/tests/comparators/test_text.py
index cf71108..2bd222c 100644
--- a/tests/comparators/test_text.py
+++ b/tests/comparators/test_text.py
@@ -69,7 +69,7 @@ def test_difference_between_iso88591_and_unicode(iso8859, unicode1):
 
 def test_difference_between_iso88591_and_unicode_only(iso8859, tmpdir):
     utf8_path = str(tmpdir.join('utf8'))
-    with open(utf8_path, 'w') as f:
+    with open(utf8_path, 'wb') as f:
         f.write(codecs.open(os.path.join(os.path.dirname(__file__), '../data/text_iso8859'), encoding='iso8859-1').read().encode('utf-8'))
     utf8 = specialize(FilesystemFile(utf8_path))
     difference = iso8859.compare(utf8)

-- 
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