[issue9409] doctest in python2.7 can't handle non-ascii characters
Ezio Melotti
report at bugs.python.org
Thu Jul 29 03:32:05 CEST 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
This change has been introduced in r79307 (see #7667).
The error seems to be raised because example.source is not unicode so it gets decoded implicitly before getting encoded with ascii+backslashreplace. I don't know if example.source is always supposed to be str or if the type might be different in some situations.
----------
components: +Library (Lib), Tests, Unicode
nosy: +ezio.melotti, flox
stage: -> unit test needed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9409>
_______________________________________
More information about the Python-bugs-list
mailing list