From fc99f127d88df9944e2cff4c36429290c3f32918 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 15 Aug 2012 02:16:28 -0700 Subject: [PATCH] Explicitly close a file during the email tests. --- tests/regressiontests/mail/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/mail/tests.py b/tests/regressiontests/mail/tests.py index c948662bc34..3e9ae846502 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'