Skip to content

Commit

Permalink
Use daemon property instead of setDaemon()
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and nyalldawson committed Nov 21, 2022
1 parent 5eadfee commit 53715c3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_wfs.py
Expand Up @@ -4987,7 +4987,7 @@ def do_GET(self):
</wfs:FeatureCollection>"""))

httpd_thread = threading.Thread(target=httpd.serve_forever)
httpd_thread.setDaemon(True)
httpd_thread.daemon = True
httpd_thread.start()

vl = QgsVectorLayer("url='http://localhost:{}' typename='my:typename' version='1.0.0'".format(port), 'test',
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgseditformconfig.py
Expand Up @@ -44,7 +44,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def createLayer(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsimagecache.py
Expand Up @@ -47,7 +47,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgslayoutpicture.py
Expand Up @@ -50,7 +50,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def __init__(self, methodName):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsnetworkaccessmanager.py
Expand Up @@ -55,7 +55,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def test_request_preprocessor(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsnetworkcontentfetcher.py
Expand Up @@ -40,7 +40,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def __init__(self, methodName):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsnetworkcontentfetcherregistry.py
Expand Up @@ -40,7 +40,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def __init__(self, methodName):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsnetworkcontentfetchertask.py
Expand Up @@ -41,7 +41,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def __init__(self, methodName):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_wms_getmap.py
Expand Up @@ -1344,7 +1344,7 @@ def test_wms_getmap_sld(self):
port = httpd.server_address[1]

httpd_thread = threading.Thread(target=httpd.serve_forever)
httpd_thread.setDaemon(True)
httpd_thread.daemon = True
httpd_thread.start()

qs = "?" + "&".join(["%s=%s" % i for i in list({
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgssvgcache.py
Expand Up @@ -47,7 +47,7 @@ def setUpClass(cls):
cls.port = cls.httpd.server_address[1]

cls.httpd_thread = threading.Thread(target=cls.httpd.serve_forever)
cls.httpd_thread.setDaemon(True)
cls.httpd_thread.daemon = True
cls.httpd_thread.start()

def setUp(self):
Expand Down

0 comments on commit 53715c3

Please sign in to comment.