Explicitly close a file during the email tests.

This commit is contained in:
Alex Gaynor 2012-08-15 02:16:28 -07:00 committed by Alex Gaynor
parent d1d393f975
commit fc99f127d8
1 changed files with 2 additions and 0 deletions

View File

@ -553,6 +553,8 @@ class FileBackendTests(BaseEmailBackendTests, TestCase):
msg.send() msg.send()
self.assertEqual(len(os.listdir(self.tmp_dir)), 3) self.assertEqual(len(os.listdir(self.tmp_dir)), 3)
connection.close()
class ConsoleBackendTests(BaseEmailBackendTests, TestCase): class ConsoleBackendTests(BaseEmailBackendTests, TestCase):
email_backend = 'django.core.mail.backends.console.EmailBackend' email_backend = 'django.core.mail.backends.console.EmailBackend'