[issue13356] test_logging warning on 2.7

Vinay Sajip report at bugs.python.org
Mon Nov 7 00:12:22 CET 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

Thanks, Florent. This patch was by you in response to issue #8201 - do you have any suggestion as to the best way to resolve this? I tried changing the non-ASCII logger to '\xc3\xb4\xc3\xbc', which decodes cleanly to u'\xf4\xfc' (o-circumflex u-umlaut), but it apparently still fails to convert to Unicode when doing the comparison, and so still raises the warning. Is there any byte-string sequence which won't give the error in this circumstance? Obviously I could convert it to Unicode, but then the test is checking correct operation when you have a non-ASCII (byte-)string name as well as a Unicode name for loggers.

----------

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


More information about the Python-bugs-list mailing list