mirror of https://github.com/python/cpython
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
(cherry picked from commit 538f28921f
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
029835d9d4
commit
123e3be33b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue