From e07560a88e2bc1f5be2aabec25eca950259f7266 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 4 Jan 2010 12:05:04 +0000 Subject: Modified the way EMAIL_BACKEND is specified to make it consistent with the new "use the class name" policy for backends. This is a BACKWARDS-INCOMPATIBLE CHANGE for anyone using a manually specified EMAIL_BACKEND setting. If you have manually specified EMAIL_BACKEND, you will need to append ".EmailBackend" to your existing EMAIL_BACKEND setting. See the django-dev mailing list for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12084 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/test') diff --git a/django/test/utils.py b/django/test/utils.py index 5990e9d07f..1129976e4e 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -43,7 +43,7 @@ def setup_test_environment(): mail.SMTPConnection = locmem.EmailBackend mail.original_email_backend = settings.EMAIL_BACKEND - settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem' + settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' mail.outbox = [] -- cgit v1.3