summaryrefslogtreecommitdiff
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 02:44:03 -0700
committerGitHub <noreply@github.com>2022-06-17 02:44:03 -0700
commit5e30ba157705fa2ac25ecb4aef3c8073598999dd (patch)
tree4677957e74de05012d6776721c9f468ba545730c /Lib/test/test_logging.py
parent5163a253544bde85e64bdd2df5a3a974bbde2864 (diff)
downloadcpython-git-5e30ba157705fa2ac25ecb4aef3c8073598999dd.tar.gz
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 8212cf7a9a..bdb1e7588b 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1904,7 +1904,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()