#19662: Eliminate warnings in other test modules that use smtpd.

Eventually these will want to convert to decode_data=False, I think.
This commit is contained in:
R David Murray 2014-06-11 12:27:40 -04:00
parent 554bcbf1b9
commit 1144da5821
2 changed files with 7 additions and 4 deletions

View file

@ -679,7 +679,8 @@ if threading:
"""
def __init__(self, addr, handler, poll_interval, sockmap):
smtpd.SMTPServer.__init__(self, addr, None, map=sockmap)
smtpd.SMTPServer.__init__(self, addr, None, map=sockmap,
decode_data=True)
self.port = self.socket.getsockname()[1]
self._handler = handler
self._thread = None