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

Michael Foord report at bugs.python.org
Tue Nov 16 11:49:51 CET 2010


Michael Foord <michael at voidspace.org.uk> added the comment:

The issue is with a non-ascii character in a *Unicode* docstring. Python has to encode the string to write it to the terminal; the encode is implicit and so fails.

The problem doesn't happen with Python 3 unless you run on an ascii terminal.

----------
assignee:  -> michael.foord

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


More information about the Python-bugs-list mailing list