Open binary files in binary mode. Fixes test failure under Windows.

This commit is contained in:
Tim Peters 2000-08-26 21:01:27 +00:00
parent 124af7cfd6
commit c79519569d

View file

@ -102,7 +102,7 @@ def test(localedir, mofile):
def setup():
os.makedirs(LOCALEDIR)
fp = open(MOFILE, 'w')
fp = open(MOFILE, 'wb')
fp.write(base64.decodestring(GNU_MO_DATA))
fp.close()