]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Jun 2022 09:53:35 +0000 (02:53 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 09:53:35 +0000 (02:53 -0700)
(cherry picked from commit 538f28921f67e36617272faa662375d305d9284c)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_logging.py

index fd562322a7637299d6bbb099c66b53fb4904df7d..9eda0706ac6fddd6d6b9423f4c7f71f60a5c458c 100644 (file)
@@ -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()