Commit 7706d9ae authored by Vinay Sajip's avatar Vinay Sajip

Closes #14452: brought tests in line with removal of BOM insertion code.

parent e8a463d7
...@@ -1480,17 +1480,17 @@ class SysLogHandlerTest(BaseTest): ...@@ -1480,17 +1480,17 @@ class SysLogHandlerTest(BaseTest):
logger = logging.getLogger("slh") logger = logging.getLogger("slh")
logger.error("sp\xe4m") logger.error("sp\xe4m")
self.handled.wait() self.handled.wait()
self.assertEqual(self.log_output, b'<11>\xef\xbb\xbfsp\xc3\xa4m\x00') self.assertEqual(self.log_output, b'<11>sp\xc3\xa4m\x00')
self.handled.clear() self.handled.clear()
self.sl_hdlr.append_nul = False self.sl_hdlr.append_nul = False
logger.error("sp\xe4m") logger.error("sp\xe4m")
self.handled.wait() self.handled.wait()
self.assertEqual(self.log_output, b'<11>\xef\xbb\xbfsp\xc3\xa4m') self.assertEqual(self.log_output, b'<11>sp\xc3\xa4m')
self.handled.clear() self.handled.clear()
self.sl_hdlr.ident = "h\xe4m-" self.sl_hdlr.ident = "h\xe4m-"
logger.error("sp\xe4m") logger.error("sp\xe4m")
self.handled.wait() self.handled.wait()
self.assertEqual(self.log_output, b'<11>\xef\xbb\xbfh\xc3\xa4m-sp\xc3\xa4m') self.assertEqual(self.log_output, b'<11>h\xc3\xa4m-sp\xc3\xa4m')
@unittest.skipUnless(threading, 'Threading required for this test.') @unittest.skipUnless(threading, 'Threading required for this test.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment