diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-27 14:40:06 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-27 14:40:06 (GMT) |
commit | 2353e35570ba5432cc1335c3926f8e5118c6404e (patch) | |
tree | 770ba4672c9e8777bfd6c7d07a9c15f666cb8ecb /Lib/test/test_logging.py | |
parent | 345a5d735706a9ab41f1a682ed34815086970bb0 (diff) | |
download | cpython-2353e35570ba5432cc1335c3926f8e5118c6404e.zip cpython-2353e35570ba5432cc1335c3926f8e5118c6404e.tar.gz cpython-2353e35570ba5432cc1335c3926f8e5118c6404e.tar.bz2 |
Closes #12419: Added ident to SysLogHandler.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b0b8e19..5d84114 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1482,6 +1482,11 @@ class SysLogHandlerTest(BaseTest): logger.error("sp\xe4m") self.handled.wait() self.assertEqual(self.log_output, b'<11>\xef\xbb\xbfsp\xc3\xa4m') + self.handled.clear() + self.sl_hdlr.ident = "h\xe4m-" + logger.error("sp\xe4m") + self.handled.wait() + self.assertEqual(self.log_output, b'<11>\xef\xbb\xbfh\xc3\xa4m-sp\xc3\xa4m') @unittest.skipUnless(threading, 'Threading required for this test.') |