diff options
author | Tim Graham <timograham@gmail.com> | 2017-01-25 13:59:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 13:59:25 -0500 |
commit | 1c466994d9729a8902d34e277a3a685bef2a08e1 (patch) | |
tree | 3a0c5ea4fc352aead66378f1fc2217feb6e1e2c7 /tests/mail | |
parent | 11856ea44e4dd1ff2358c559c0d04ac848832c23 (diff) | |
download | django-1c466994d9729a8902d34e277a3a685bef2a08e1.tar.gz |
Refs #23919 -- Removed misc Python 2/3 references.
Diffstat (limited to 'tests/mail')
-rw-r--r-- | tests/mail/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py index 60758a637b..a902e5435c 100644 --- a/tests/mail/tests.py +++ b/tests/mail/tests.py @@ -192,7 +192,6 @@ class MailTests(HeadersCheckMixin, SimpleTestCase): 'Content', 'from@example.com', ['to@example.com'] ) message = email.message() - # Note that in Python 3, maximum line length has increased from 76 to 78 self.assertEqual( message['Subject'].encode(), b'Long subject lines that get wrapped should contain a space continuation\n' @@ -1157,8 +1156,8 @@ class FakeSMTPServer(smtpd.SMTPServer, threading.Thread): if mailfrom != maddr: # According to the spec, mailfrom does not necessarily match the - # From header - on Python 3 this is the case where the local part - # isn't encoded, so try to correct that. + # From header - this is the case where the local part isn't + # encoded, so try to correct that. lp, domain = mailfrom.split('@', 1) lp = Header(lp, 'utf-8').encode() mailfrom = '@'.join([lp, domain]) |