From: Victor Stinner Date: Fri, 17 Jun 2022 08:09:54 +0000 (+0200) Subject: test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) X-Git-Tag: v3.12.0a1~1229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=538f28921f67e36617272faa662375d305d9284c;p=thirdparty%2FPython%2Fcpython.git test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 5200281769f7..f4a432428053 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1965,7 +1965,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()