diff options
| author | R David Murray <rdmurray@bitdance.com> | 2014-06-11 16:27:40 (GMT) |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2014-06-11 16:27:40 (GMT) |
| commit | 1144da5821553449739744f08d041b4ba7114ecb (patch) | |
| tree | b8e583e0d2ff55c2ffea120caefc1d4f038f14b5 /Lib/test/test_logging.py | |
| parent | 554bcbf1b925399ef06dd9fd6b87a20f5d028c1e (diff) | |
| download | cpython-1144da5821553449739744f08d041b4ba7114ecb.zip cpython-1144da5821553449739744f08d041b4ba7114ecb.tar.gz cpython-1144da5821553449739744f08d041b4ba7114ecb.tar.bz2 | |
#19662: Eliminate warnings in other test modules that use smtpd.
Eventually these will want to convert to decode_data=False, I think.
Diffstat (limited to 'Lib/test/test_logging.py')
| -rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index f765c37..52412d1 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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 |
