summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-08-26 21:01:27 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-08-26 21:01:27 (GMT)
commitc79519569d20d90cc9ec6ff8584dfd959bd2e1f1 (patch)
tree358df6eef2d4d3a1698b0ad7021c4f11a6e736be /Lib
parent124af7cfd67de52e600c8519b7026a2bed48c494 (diff)
downloadcpython-c79519569d20d90cc9ec6ff8584dfd959bd2e1f1.zip
cpython-c79519569d20d90cc9ec6ff8584dfd959bd2e1f1.tar.gz
cpython-c79519569d20d90cc9ec6ff8584dfd959bd2e1f1.tar.bz2
Open binary files in binary mode. Fixes test failure under Windows.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_gettext.py2
1 files changed, 1 insertions, 1 deletions
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()