summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-07-20 20:18:14 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-07-20 20:18:14 (GMT)
commit8a435c472987b230bd1164037c9f9a192df98d4d (patch)
tree53e94c43e6b677f9d393f30d2931de89b227e61c /Lib/test/test_logging.py
parentae7dd8fab0d49dd3e1cf71ae64ec8a386cf2061c (diff)
downloadcpython-8a435c472987b230bd1164037c9f9a192df98d4d.zip
cpython-8a435c472987b230bd1164037c9f9a192df98d4d.tar.gz
cpython-8a435c472987b230bd1164037c9f9a192df98d4d.tar.bz2
Fixed #9310: backported logging fix from 2.7.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 9af2818..27eeb27 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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()