summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 15:22:38 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-16 15:22:38 (GMT)
commit7706d9ae4fadc08f400e32737ef2bf5769919bd5 (patch)
tree486a05abace739e2b7278f019e5b904e37669d5f /Lib/test/test_logging.py
parente8a463d7912da87bca64ac2e9e8e89cce701ed7c (diff)
downloadcpython-7706d9ae4fadc08f400e32737ef2bf5769919bd5.zip
cpython-7706d9ae4fadc08f400e32737ef2bf5769919bd5.tar.gz
cpython-7706d9ae4fadc08f400e32737ef2bf5769919bd5.tar.bz2
Closes #14452: brought tests in line with removal of BOM insertion code.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index b0f8f9f..edcefa1 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1480,17 +1480,17 @@ class SysLogHandlerTest(BaseTest):
logger = logging.getLogger("slh")
logger.error("sp\xe4m")
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.sl_hdlr.append_nul = False
logger.error("sp\xe4m")
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.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')
+ self.assertEqual(self.log_output, b'<11>h\xc3\xa4m-sp\xc3\xa4m')
@unittest.skipUnless(threading, 'Threading required for this test.')