1
0
mirror of https://github.com/django/django.git synced 2025-04-02 20:46:41 +00:00

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

View File

@ -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'