Browse files

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...
1 parent 0e49b39 commit b59aa81d680f14e6cf03ff1e4ecaa241a2877adc @freakboy3742 freakboy3742 committed Nov 4, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/test/utils.py
View
2 django/test/utils.py
@@ -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 = []

0 comments on commit b59aa81

Please sign in to comment.