mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fixed #9310: backported logging fix from 2.7.
This commit is contained in:
parent
ae7dd8fab0
commit
8a435c4729
2 changed files with 10 additions and 1 deletions
|
@ -69,6 +69,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 issues 8201, 9310.
|
||||
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