[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding

Terry J. Reedy report at bugs.python.org
Wed Aug 4 01:53:10 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

In 3.1.2, where the docstring is unicode, the doctest of normalize works fine, as Karen said. I think she is right: without the encoding being explicitly passed to doctest, it cannot affect how the sub-interpreter used by doctest compiles the strings as code.

I am therefore closing this as invalid (or won't fix, or out-of-date). In any case, it strikes me as a feature request, and test modules, especially, should not be enhanced in bugfix releases. If one thinks of it as a bug, the bug was fixed in 3.0 but cannot be backported.

----------
nosy: +tjreedy
resolution:  -> invalid
status: open -> closed
type: behavior -> feature request
versions: +Python 2.7 -Python 2.5

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


More information about the Python-bugs-list mailing list