------------------------------------------------------------
revno: 6738
committer: Barry Warsaw <[email protected]>
branch nick: 3.0
timestamp: Mon 2009-06-29 21:46:20 -0400
message:
  Set testing threads as daemon so they won't hang.
  Fix system absolute url.
modified:
  src/mailman/rest/testing/server.py
  src/mailman/rest/urls.py
  src/mailman/testing/helpers.py

=== modified file 'src/mailman/rest/testing/server.py'
--- src/mailman/rest/testing/server.py  2009-05-12 03:00:30 +0000
+++ src/mailman/rest/testing/server.py  2009-06-30 01:46:20 +0000
@@ -44,6 +44,7 @@
         self.server = make_server()
         self.event = threading.Event()
         self.thread = threading.Thread(target=self.loop)
+        self.thread.daemon = True
         
     def start(self):
         """Start the server."""

=== modified file 'src/mailman/rest/urls.py'
--- src/mailman/rest/urls.py    2009-06-30 01:30:04 +0000
+++ src/mailman/rest/urls.py    2009-06-30 01:46:20 +0000
@@ -69,8 +69,7 @@
         # Special cases.
         if isinstance(ob, AdminWebServiceApplication):
             return ''
-        urls = dict(
-            system='system',
-            domains='domains',
-            )
+        urls = {
+            system: 'system',
+            }
         return urls[ob]

=== modified file 'src/mailman/testing/helpers.py'
--- src/mailman/testing/helpers.py      2009-05-10 20:13:02 +0000
+++ src/mailman/testing/helpers.py      2009-06-30 01:46:20 +0000
@@ -137,6 +137,7 @@
         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 @@
         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."""



--
lp:mailman
https://code.launchpad.net/~mailman-coders/mailman/3.0

Your team Mailman Checkins is subscribed to branch lp:mailman.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/3.0/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to