[Python-checkins] test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
vsajip
webhook-mailer at python.org
Fri Jun 17 04:10:10 EDT 2022
https://github.com/python/cpython/commit/538f28921f67e36617272faa662375d305d9284c
commit: 538f28921f67e36617272faa662375d305d9284c
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2022-06-17T09:09:54+01:00
summary:
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 5200281769f76..f4a4324280539 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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()
More information about the Python-checkins
mailing list