Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Corrected the order of operations in the test environment setup to en…

…sure 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
  • Loading branch information...
commit b59aa81d680f14e6cf03ff1e4ecaa241a2877adc 1 parent 0e49b39
Russell Keith-Magee authored November 04, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/test/utils.py
2  django/test/utils.py
@@ -43,8 +43,8 @@ def setup_test_environment():
43 43
     mail.original_SMTPConnection = mail.SMTPConnection
44 44
     mail.SMTPConnection = locmem.EmailBackend
45 45
 
46  
-    settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem'
47 46
     mail.original_email_backend = settings.EMAIL_BACKEND
  47
+    settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem'
48 48
 
49 49
     mail.outbox = []
50 50
 

0 notes on commit b59aa81

Please sign in to comment.
Something went wrong with that request. Please try again.