diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index fd562322a76..9eda0706ac6 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1919,7 +1919,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()