From 3eb4acf118d8e3781198640f02a3d6a327861f7c Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 Apr 2011 08:39:31 +0000 Subject: [PATCH] Removed a usage of the depreacted SMTPConnection in test.utils. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15981 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/django/test/utils.py b/django/test/utils.py index 90a8b3e88f..2672594916 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -67,9 +67,6 @@ def setup_test_environment(): Template.original_render = Template._render Template._render = instrumented_test_render - mail.original_SMTPConnection = mail.SMTPConnection - mail.SMTPConnection = locmem.EmailBackend - mail.original_email_backend = settings.EMAIL_BACKEND settings.EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' @@ -88,9 +85,6 @@ def teardown_test_environment(): Template._render = Template.original_render del Template.original_render - mail.SMTPConnection = mail.original_SMTPConnection - del mail.original_SMTPConnection - settings.EMAIL_BACKEND = mail.original_email_backend del mail.original_email_backend