Show
Ignore:
Timestamp:
11/05/07 12:38:45 (1 year ago)
Author:
amcgregor
Message:

Applied latest patch from ticket #11 to correct mail sink problem.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.0.5/tests/lib/smtp_mailsink.py

    r47 r53  
    4545 
    4646import asyncore 
     47import select 
     48import errno 
    4749import copy 
    4850import smtpd 
     
    116118                "Just run in a loop until stop() is called." 
    117119                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 
    119125 
    120126        def stop(self, timeout_seconds=5.0):