summaryrefslogtreecommitdiff
path: root/tests/mail
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mail')
-rw-r--r--tests/mail/tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index e283101b79..029d332c42 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -1211,10 +1211,7 @@ class FakeSMTPServer(smtpd.SMTPServer, threading.Thread):
def __init__(self, *args, **kwargs):
threading.Thread.__init__(self)
- # New kwarg added in Python 3.5; default switching to False in 3.6.
- # Setting a value only silences a deprecation warning in Python 3.5.
- kwargs['decode_data'] = True
- smtpd.SMTPServer.__init__(self, *args, **kwargs)
+ smtpd.SMTPServer.__init__(self, *args, decode_data=True, **kwargs)
self._sink = []
self.active = False
self.active_lock = threading.Lock()