[issue8201] test_logging fails if the loggerDict contains non-ASCII loggers.

Florent Xicluna report at bugs.python.org
Mon Mar 22 13:19:28 CET 2010


New submission from Florent Xicluna <florent.xicluna at gmail.com>:

Following test case fails with a UnicodeDecodeError:

import logging
import logging.config
logging.getLogger("\xab\xd7\xbb")
logging.getLogger(u"LOG")
logging.config.dictConfig({'version': 1})


Same behavior on "non-ASCII" path buildbots, when test_lib2to3 is run before test_logging. It happens because "test_lib2to3" set a logger with key u"<string>".
IMHO, it should be fixed in the logging module.

----------
assignee: vinay.sajip
components: 2to3 (2.x to 3.0 conversion tool), Library (Lib)
keywords: buildbot
messages: 101497
nosy: benjamin.peterson, flox, haypo, vinay.sajip
priority: normal
severity: normal
stage: test needed
status: open
title: test_logging fails if the loggerDict contains non-ASCII loggers.
type: behavior
versions: Python 2.7

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


More information about the Python-bugs-list mailing list