Commits

holger krekel committed d2b5559

run one set of terminal tests against a UTF8 encoded file

Comments (0)

Files changed (1)

testing/io_/test_terminalwriter.py

         if request.param == "path":
             tmpdir = request.getfuncargvalue("tmpdir")
             p = tmpdir.join("tmpfile")
-            tw = py.io.TerminalWriter(p.open('w+'))
+            import codecs
+            f = codecs.open(str(p), 'w+', encoding='utf8')
+            tw = py.io.TerminalWriter(f)
             def getlines():
                 tw._file.flush()
                 return p.open('r').readlines()