From c79519569d20d90cc9ec6ff8584dfd959bd2e1f1 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 26 Aug 2000 21:01:27 +0000 Subject: Open binary files in binary mode. Fixes test failure under Windows. --- Lib/test/test_gettext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 5006fff..77a6e96 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() -- cgit v0.12