]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
authorVictor Stinner <vstinner@python.org>
Fri, 17 Jun 2022 08:09:54 +0000 (10:09 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 08:09:54 +0000 (09:09 +0100)
Lib/test/test_logging.py

index 5200281769f764e943bf1a0ebf8cc8041c3f77ba..f4a4324280539e23121b6ea750ae906f7b54dd68 100644 (file)
@@ -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()