Skip to content

Commit

Permalink
test_logging: Fix BytesWarning in SysLogHandlerTest (pythonGH-93920)
Browse files Browse the repository at this point in the history
(cherry picked from commit 538f289)

Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
miss-islington and vstinner authored Jun 17, 2022
1 parent 5163a25 commit 5e30ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,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()
Expand Down

0 comments on commit 5e30ba1

Please sign in to comment.