>
> Also in the next release will be a suite of unit tests which will
> include a debugging SMTP server / mail sink.  In fact, that's the only
> component holding up release.  Doesn't look at someone specific.
> *hint*  *hint*


I've not talked to someone about the problem last week, and thus not looked 
into it, so I didn't send the attached patch to someone so that running on os 
x will succeed.

This is a message from the PSU, please delete immediatly and burn your 
computer.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Index: tests/lib/smtp_mailsink.py
===================================================================
--- tests/lib/smtp_mailsink.py	(Revision 52)
+++ tests/lib/smtp_mailsink.py	(Arbeitskopie)
@@ -44,6 +44,8 @@
 version = '1.0.1'
 
 import asyncore
+import select
+import errno
 import copy
 import smtpd
 import threading
@@ -115,7 +117,11 @@
 	def run(self):
 		"Just run in a loop until stop() is called."
 		while not self.stop_event.isSet():
-			asyncore.loop(timeout=0.1)
+                        try:
+                                asyncore.loop(timeout=0.1)
+                        except select.error, e:
+                                if e.args[0] != errno.EBADF:
+                                        raise
 
 	def stop(self, timeout_seconds=5.0):
 		"""Stop the mailsink and shut down this thread. timeout_seconds 

Reply via email to