diff options
| author | Tim Peters <tim.peters@gmail.com> | 2000-08-26 21:01:27 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2000-08-26 21:01:27 +0000 |
| commit | c79519569d20d90cc9ec6ff8584dfd959bd2e1f1 (patch) | |
| tree | 358df6eef2d4d3a1698b0ad7021c4f11a6e736be /Lib/test/test_gettext.py | |
| parent | 124af7cfd67de52e600c8519b7026a2bed48c494 (diff) | |
| download | cpython-git-c79519569d20d90cc9ec6ff8584dfd959bd2e1f1.tar.gz | |
Open binary files in binary mode. Fixes test failure under Windows.
Diffstat (limited to 'Lib/test/test_gettext.py')
| -rw-r--r-- | Lib/test/test_gettext.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
