provide encoding to dupfile() for py3
--HG-- branch : trunk
This commit is contained in:
parent
ff90b1b4fb
commit
d909aead4e
|
@ -76,7 +76,7 @@ def test_dupfile(tmpfile):
|
||||||
somefile = tmpfile
|
somefile = tmpfile
|
||||||
flist = []
|
flist = []
|
||||||
for i in range(5):
|
for i in range(5):
|
||||||
nf = py.io.dupfile(somefile)
|
nf = py.io.dupfile(somefile, encoding="utf-8")
|
||||||
assert nf != somefile
|
assert nf != somefile
|
||||||
assert nf.fileno() != somefile.fileno()
|
assert nf.fileno() != somefile.fileno()
|
||||||
assert nf not in flist
|
assert nf not in flist
|
||||||
|
|
Loading…
Reference in New Issue