diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-17 08:09:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 08:09:54 (GMT) |
commit | 538f28921f67e36617272faa662375d305d9284c (patch) | |
tree | b78ee659328705e84a399a368bb04e0a25d0de70 | |
parent | e37a158725dec561f234b81864363d55f05c7b4e (diff) | |
download | cpython-538f28921f67e36617272faa662375d305d9284c.zip cpython-538f28921f67e36617272faa662375d305d9284c.tar.gz cpython-538f28921f67e36617272faa662375d305d9284c.tar.bz2 |
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 5200281..f4a4324 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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() |