summaryrefslogtreecommitdiff
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-22 13:02:28 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-22 13:02:28 +0000
commit31e928eb3c44d90ec951db118de4736e90532f84 (patch)
tree9e27ac1606393b850688c0a022643ba1a06c5c10 /Lib/test/test_logging.py
parentc7790ed1637ad688ea61decf45703f996f29584d (diff)
downloadcpython-git-31e928eb3c44d90ec951db118de4736e90532f84.tar.gz
Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
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 e3b9718d03..a918d6eca7 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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()