mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)
This commit is contained in:
parent
3447750073
commit
95bbb331ec
4 changed files with 7 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue