From d909aead4e254074942c360d73c8bf48a1a57e80 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 23 Apr 2010 20:27:34 -0500 Subject: [PATCH] provide encoding to dupfile() for py3 --HG-- branch : trunk --- testing/io_/test_capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/io_/test_capture.py b/testing/io_/test_capture.py index 03e1b108b..f97876b1c 100644 --- 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