summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 0f7d2ed25..7c225d788 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -137,6 +137,7 @@ class TestableMaster(Master):
self.start_check = start_check
self.event = threading.Event()
self.thread = threading.Thread(target=self.loop)
+ self.thread.daemon = True
self._started_kids = None
def start(self, *qrunners):
@@ -194,6 +195,7 @@ class SMTPServer:
self.port = int(config.mta.smtp_port)
self._server = Server((self.host, self.port), self._queue)
self._thread = threading.Thread(target=self._server.start)
+ self._thread.daemon = True
def start(self):
"""Start the smtp server in a thread."""