[pypy-commit] pypy default: explicitly specify the encoding. It seems that at least on tannit it cannot find a default one

antocuni noreply at buildbot.pypy.org
Fri Feb 24 11:19:10 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
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


More information about the pypy-commit mailing list