This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_logging fails if the loggerDict contains non-ASCII loggers.
Type: behavior Stage: test needed
Components: 2to3 (2.x to 3.x conversion tool), Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: benjamin.peterson, flox, vinay.sajip, vstinner
Priority: normal Keywords: buildbot, patch

Created on 2010-03-22 12:19 by flox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue8201_logging_config.diff flox, 2010-03-22 12:21 Patch, apply to 2.x
Messages (3)
msg101497 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-22 12:19
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.
msg101498 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-22 12:21
Proposed patch with tests.
msg101504 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2010-03-22 13:03
Fix checked into trunk (r79284).
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52448
2010-03-22 13:03:37vinay.sajipsetstatus: open -> closed
resolution: fixed
messages: + msg101504
2010-03-22 12:21:26floxsetfiles: + issue8201_logging_config.diff
keywords: + patch
messages: + msg101498
2010-03-22 12:19:26floxcreate