Fixed #11546 -- Modified the mail regression test to avoid getting hung up on 32/64 bit differences. Thanks to Richard Davies for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11328 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-07-25 05:14:46 +00:00
parent 5d57edcbfc
commit 4a01812c15
1 changed files with 3 additions and 4 deletions

View File

@ -90,8 +90,8 @@ BadHeaderError: Header values can't contain newlines (got u'Subject\nInjection T
# Make sure we can manually set the From header (#9214) # Make sure we can manually set the From header (#9214)
>>> email = EmailMessage('Subject', 'Content', 'bounce@example.com', ['to@example.com'], headers={'From': 'from@example.com'}) >>> email = EmailMessage('Subject', 'Content', 'bounce@example.com', ['to@example.com'], headers={'From': 'from@example.com'})
>>> message = email.message() >>> message = email.message()
>>> message['From'] >>> message['From']
'from@example.com' 'from@example.com'
@ -115,8 +115,7 @@ To: to@example.com
Date: Fri, 09 Nov 2001 01:08:47 -0000 Date: Fri, 09 Nov 2001 01:08:47 -0000
Message-ID: foo Message-ID: foo
... ...
Content-Type: multipart/alternative; boundary="..." Content-Type: multipart/alternative;...
MIME-Version: 1.0
... ...
Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0 MIME-Version: 1.0