# HG changeset patch -- Bitbucket.org # Project py-trunk # URL http://bitbucket.org/hpk42/py-trunk/overview # User Benjamin Peterson <benja...@python.org> # Date 1272072454 18000 # Node ID 4be9b9ce4c62e0cae65debb2e3ec10795c110101 # Parent e3c665a014058758284fe581f3c5e8cda670bd48 provide encoding to dupfile() for py3
--- a/testing/io_/test_capture.py +++ b/testing/io_/test_capture.py @@ -76,7 +76,7 @@ def test_dupfile(tmpfile): somefile = tmpfile flist = [] for i in range(5): - nf = py.io.dupfile(somefile) + nf = py.io.dupfile(somefile, encoding="utf-8") assert nf != somefile assert nf.fileno() != somefile.fileno() assert nf not in flist _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn