summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-08-15 02:16:28 -0700
committerAlex Gaynor <alex.gaynor@rd.io>2012-08-15 02:16:28 -0700
commitfc99f127d88df9944e2cff4c36429290c3f32918 (patch)
treede58bff0a3f2a09b45b7cccabd3b77f714bd441b /tests
parentd1d393f975f5b14ce465fd85309520bd3c7d9162 (diff)
Explicitly close a file during the email tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/mail/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/mail/tests.py b/tests/regressiontests/mail/tests.py
index c948662bc3..3e9ae84650 100644
--- a/tests/regressiontests/mail/tests.py
+++ b/tests/regressiontests/mail/tests.py
@@ -553,6 +553,8 @@ class FileBackendTests(BaseEmailBackendTests, TestCase):
msg.send()
self.assertEqual(len(os.listdir(self.tmp_dir)), 3)
+ connection.close()
+
class ConsoleBackendTests(BaseEmailBackendTests, TestCase):
email_backend = 'django.core.mail.backends.console.EmailBackend'