From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Jun 2022 09:44:03 +0000 (-0700) Subject: test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) X-Git-Tag: v3.10.6~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e30ba157705fa2ac25ecb4aef3c8073598999dd;p=thirdparty%2FPython%2Fcpython.git test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) (cherry picked from commit 538f28921f67e36617272faa662375d305d9284c) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 8212cf7a9a96..bdb1e7588b20 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1904,7 +1904,7 @@ class SysLogHandlerTest(BaseTest): self.sl_hdlr = hcls((server.server_address[0], server.port)) else: self.sl_hdlr = hcls(server.server_address) - self.log_output = '' + self.log_output = b'' self.root_logger.removeHandler(self.root_logger.handlers[0]) self.root_logger.addHandler(self.sl_hdlr) self.handled = threading.Event()