Skip to content

Commit

Permalink
Fix DeprecationWarning: setDaemon() is deprecated, set the daemon att…
Browse files Browse the repository at this point in the history
…ribute instead
  • Loading branch information
hugovk committed Oct 22, 2021
1 parent bdda82a commit c2a8a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def do_HEAD(self):

httpd = SocketServer.TCPServer(("", 0), MyHandler)
t = threading.Thread(target=httpd.serve_forever)
t.setDaemon(True)
t.daemon = True
t.start()
port = httpd.server_address[1]
yield functools.partial(url, port)
Expand Down

0 comments on commit c2a8a09

Please sign in to comment.