From: Vinay Sajip Date: Mon, 16 Apr 2012 15:22:38 +0000 (+0100) Subject: Closes #14452: brought tests in line with removal of BOM insertion code. X-Git-Tag: v3.3.0a3~199 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7706d9ae4fadc08f400e32737ef2bf5769919bd5;p=thirdparty%2FPython%2Fcpython.git Closes #14452: brought tests in line with removal of BOM insertion code. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b0f8f9fb165c..edcefa1406fc 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.')