mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
This commit is contained in:
parent
c7790ed163
commit
31e928eb3c
3 changed files with 15 additions and 2 deletions
|
@ -68,6 +68,12 @@ class BaseTest(unittest.TestCase):
|
|||
finally:
|
||||
logging._releaseLock()
|
||||
|
||||
# Set two unused loggers: one non-ASCII and one Unicode.
|
||||
# This is to test correct operation when sorting existing
|
||||
# loggers in the configuration code. See issue 8201.
|
||||
logging.getLogger("\xab\xd7\xbb")
|
||||
logging.getLogger(u"\u013f\u00d6\u0047")
|
||||
|
||||
self.root_logger = logging.getLogger("")
|
||||
self.original_logging_level = self.root_logger.getEffectiveLevel()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue