[issue8765] Tests unwillingly writing unicocde to raw streams

Ray.Allen report at bugs.python.org
Fri May 21 11:08:12 CEST 2010


Ray.Allen <ysj.ray at gmail.com> added the comment:

pakal wrote:
"""
In test_fileio, one of the tests wants to ensure writing to closed raw streams fails, but it actually tries to write an unicode string
"""

I don't understand. Isn't b'xxx' and 'xxx' the same in py2.x? They are not unicode string, but bytes string.

----------
nosy: +ysj.ray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8765>
_______________________________________


More information about the Python-bugs-list mailing list