From 123e3be33b095ecf92d2c19a6ac521065c1ba8af Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 17 Jun 2022 02:53:35 -0700 Subject: [PATCH] test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) (cherry picked from commit 538f28921f67e36617272faa662375d305d9284c) Co-authored-by: Victor Stinner --- Lib/test/test_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()