From: Tim Peters Date: Sat, 26 Aug 2000 21:01:27 +0000 (+0000) Subject: Open binary files in binary mode. Fixes test failure under Windows. X-Git-Tag: v2.0b1~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c79519569d20d90cc9ec6ff8584dfd959bd2e1f1;p=python Open binary files in binary mode. Fixes test failure under Windows. --- diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 5006fff12a..77a6e96d3f 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py @@ -102,7 +102,7 @@ MOFILE = os.path.join(LOCALEDIR, 'gettext.mo') def setup(): os.makedirs(LOCALEDIR) - fp = open(MOFILE, 'w') + fp = open(MOFILE, 'wb') fp.write(base64.decodestring(GNU_MO_DATA)) fp.close()