Skip to content

Commit

Permalink
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored Jun 17, 2022
1 parent e37a158 commit 538f289
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 @@ -1965,7 +1965,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 538f289

Please sign in to comment.