[Checkins] SVN: lovely.mail/trunk/ - stop remaining QueueProcessThread on tearDown because python 2.5 doesn't
Juergen Kartnaller
juergen at kartnaller.at
Wed Apr 22 09:18:21 EDT 2009
Log message for revision 99364:
- stop remaining QueueProcessThread on tearDown because python 2.5 doesn't
terminate.
Changed:
U lovely.mail/trunk/CHANGES.txt
U lovely.mail/trunk/setup.py
U lovely.mail/trunk/src/lovely/mail/testing.py
-=-
Modified: lovely.mail/trunk/CHANGES.txt
===================================================================
--- lovely.mail/trunk/CHANGES.txt 2009-04-22 12:51:14 UTC (rev 99363)
+++ lovely.mail/trunk/CHANGES.txt 2009-04-22 13:18:20 UTC (rev 99364)
@@ -5,6 +5,12 @@
After
=====
+2009/04/22 0.2.0
+================
+
+ - stop remaining QueueProcessThread on tearDown because python 2.5 doesn't
+ terminate.
+
2008/04/22 0.1.3
================
Modified: lovely.mail/trunk/setup.py
===================================================================
--- lovely.mail/trunk/setup.py 2009-04-22 12:51:14 UTC (rev 99363)
+++ lovely.mail/trunk/setup.py 2009-04-22 13:18:20 UTC (rev 99364)
@@ -16,14 +16,14 @@
name = 'lovely.mail'
setup(
name = name,
- version = '0.1.3',
+ version = '0.2.0',
author = "Lovely Systems",
author_email = "office at lovelysystems.com",
license = "ZPL 2.1",
keywords = "mail zope zope3",
url = 'http://launchpad.net/lovely.mail',
description = "sending emails via remotetask",
- long_description = long_description,
+ long_description = long_description,
zip_safe = False,
packages = find_packages('src'),
include_package_data = True,
@@ -43,7 +43,6 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Topic :: Software Development :: Libraries :: Python Modules',
- ],
-
+ ],
)
Modified: lovely.mail/trunk/src/lovely/mail/testing.py
===================================================================
--- lovely.mail/trunk/src/lovely/mail/testing.py 2009-04-22 12:51:14 UTC (rev 99363)
+++ lovely.mail/trunk/src/lovely/mail/testing.py 2009-04-22 13:18:20 UTC (rev 99364)
@@ -120,6 +120,10 @@
global oldSMTP, oldQueuePath, mailer, delivery, thread
mailer.smtp = oldSMTP
delivery._queuePath = oldQueuePath
+ import threading
+ for t in threading.enumerate():
+ if isinstance(t, QueueProcessorThread):
+ t.stop()
thread = None
del sentMails[:]
More information about the Checkins
mailing list