Changeset 53 for branches/2.0.5/tests/lib/smtp_mailsink.py
- Timestamp:
- 11/05/07 12:38:45 (1 year ago)
- Files:
-
- 1 modified
-
branches/2.0.5/tests/lib/smtp_mailsink.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0.5/tests/lib/smtp_mailsink.py
r47 r53 45 45 46 46 import asyncore 47 import select 48 import errno 47 49 import copy 48 50 import smtpd … … 116 118 "Just run in a loop until stop() is called." 117 119 while not self.stop_event.isSet(): 118 asyncore.loop(timeout=0.1) 120 try: 121 asyncore.loop(timeout=0.1) 122 except select.error, e: 123 if e.args[0] != errno.EBADF: 124 raise 119 125 120 126 def stop(self, timeout_seconds=5.0):
