diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index fd562322a76372..9eda0706ac6fdd 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1919,7 +1919,7 @@ def setUp(self): 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()