Author: Antonio Cuni <[email protected]>
Branch: 
Changeset: r52842:69da974cc0af
Date: 2012-02-24 11:18 +0100
http://bitbucket.org/pypy/pypy/changeset/69da974cc0af/

Log:    explicitly specify the encoding. It seems that at least on tannit it
        cannot find a default one

diff --git a/pypy/module/_io/test/test_fileio.py 
b/pypy/module/_io/test/test_fileio.py
--- a/pypy/module/_io/test/test_fileio.py
+++ b/pypy/module/_io/test/test_fileio.py
@@ -170,7 +170,7 @@
     space = make_objspace(config)
     space.appexec([space.wrap(str(tmpfile))], """(tmpfile):
         import io
-        f = io.open(tmpfile, 'w')
+        f = io.open(tmpfile, 'w', encoding='ascii')
         f.write('42')
         # no flush() and no close()
         import sys; sys._keepalivesomewhereobscure = f
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to