Commit b59aa81d authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Corrected the order of operations in the test environment setup to ensure that...

Corrected the order of operations in the test environment setup to ensure that the original email backend can be restored. Thanks to koenb for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 0e49b397
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,8 +43,8 @@ def setup_test_environment():
    mail.original_SMTPConnection = mail.SMTPConnection
    mail.SMTPConnection = locmem.EmailBackend

    settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem'
    mail.original_email_backend = settings.EMAIL_BACKEND
    settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem'

    mail.outbox = []