summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-17 09:53:35 (GMT)
committerGitHub <noreply@github.com>2022-06-17 09:53:35 (GMT)
commit123e3be33b095ecf92d2c19a6ac521065c1ba8af (patch)
tree0d3b6b95815d32b957386263afd6bc9d5a4c1657 /Lib/test/test_logging.py
parent029835d9d4073d34d95bde9f969a6b0f969fda00 (diff)
downloadcpython-123e3be33b095ecf92d2c19a6ac521065c1ba8af.zip
cpython-123e3be33b095ecf92d2c19a6ac521065c1ba8af.tar.gz
cpython-123e3be33b095ecf92d2c19a6ac521065c1ba8af.tar.bz2
test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920)
(cherry picked from commit 538f28921f67e36617272faa662375d305d9284c) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index fd56232..9eda070 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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()