changeset 2581:67aeed6f77ce

fix filter tests for win32 by using binary mode
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 29 Jul 2007 20:17:24 +0200
parents c3741ed41050
children 66add9e5bec7
files MoinMoin/filter/_tests/test_filter.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/filter/_tests/test_filter.py	Sun Jul 29 17:59:48 2007 +0200
+++ b/MoinMoin/filter/_tests/test_filter.py	Sun Jul 29 20:17:24 2007 +0200
@@ -14,7 +14,7 @@
     def make_file(self, data):
         import tempfile
         fname = tempfile.mktemp()
-        f = file(fname, 'w')
+        f = file(fname, 'wb')
         f.write(data)
         f.close()
         return fname