summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-04-12 11:12:36 (GMT)
committerGitHub <noreply@github.com>2021-04-12 11:12:36 (GMT)
commit95bbb331ecb3ef5d05859d90b287cc3d27613c86 (patch)
treee34682d708083b4c2f4bbae5e20f55835a711d8e /Lib/test/test_logging.py
parent3447750073aff229b049e4ccd6217db2811dcfd1 (diff)
downloadcpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.zip
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.gz
cpython-95bbb331ecb3ef5d05859d90b287cc3d27613c86.tar.bz2
bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 452ba78..6179e28 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -849,7 +849,7 @@ class TestSMTPServer(smtpd.SMTPServer):
"""
self._thread = t = threading.Thread(target=self.serve_forever,
args=(self.poll_interval,))
- t.setDaemon(True)
+ t.daemon = True
t.start()
def serve_forever(self, poll_interval):
@@ -901,7 +901,7 @@ class ControlMixin(object):
"""
self._thread = t = threading.Thread(target=self.serve_forever,
args=(self.poll_interval,))
- t.setDaemon(True)
+ t.daemon = True
t.start()
def serve_forever(self, poll_interval):