provide encoding to dupfile() for py3

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2010-04-23 20:27:34 -05:00
parent ff90b1b4fb
commit d909aead4e
1 changed files with 1 additions and 1 deletions

View File

@ -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