[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

Michael Foord report at bugs.python.org
Fri Jul 4 00:32:19 CEST 2014


Michael Foord added the comment:

So the proposed fix does the backslashreplace for errors and then re-decodes, allowing the encode in the stream to work. That seems like a good fix.

----------

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


More information about the Python-bugs-list mailing list