diff options
author | Christian Heimes <christian@python.org> | 2021-04-12 11:12:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 11:12:36 (GMT) |
commit | 95bbb331ecb3ef5d05859d90b287cc3d27613c86 (patch) | |
tree | e34682d708083b4c2f4bbae5e20f55835a711d8e /Lib/test/test_telnetlib.py | |
parent | 3447750073aff229b049e4ccd6217db2811dcfd1 (diff) | |
download | cpython-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_telnetlib.py')
-rw-r--r-- | Lib/test/test_telnetlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py index 8e36051..41c4fcd 100644 --- a/Lib/test/test_telnetlib.py +++ b/Lib/test/test_telnetlib.py @@ -29,7 +29,7 @@ class GeneralTests(unittest.TestCase): self.sock.settimeout(60) # Safety net. Look issue 11812 self.port = socket_helper.bind_port(self.sock) self.thread = threading.Thread(target=server, args=(self.evt,self.sock)) - self.thread.setDaemon(True) + self.thread.daemon = True self.thread.start() self.evt.wait() |