Skip to content

Commit

Permalink
Merge pull request #2644 from tirkarthi/fix-threading
Browse files Browse the repository at this point in the history
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
  • Loading branch information
jaraco committed Apr 24, 2021
2 parents 4ad2076 + 87efb79 commit 00df794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2644.misc.rst
@@ -0,0 +1 @@
Fixed ``DeprecationWarning`` due to ``threading.Thread.setDaemon`` in tests -- by :user:`tirkarthi`
2 changes: 1 addition & 1 deletion setuptools/tests/server.py
Expand Up @@ -65,7 +65,7 @@ def __init__(
http.server.HTTPServer.__init__(
self, server_address, RequestHandlerClass)
threading.Thread.__init__(self)
self.setDaemon(True)
self.daemon = True
self.requests = []

def run(self):
Expand Down

0 comments on commit 00df794

Please sign in to comment.