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 <vstinner@python.org>
  • Loading branch information
vstinner authored and miss-islington committed Jun 17, 2022
1 parent 5163a25 commit 0e84477
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 0e84477

Please sign in to comment.