Commits

Antonio Cuni committed 69da974

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

Comments (0)

Files changed (1)

pypy/module/_io/test/test_fileio.py

     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