Commit fc99f127 authored by Alex Gaynor's avatar Alex Gaynor Committed by Alex Gaynor
Browse files

Explicitly close a file during the email tests.

parent d1d393f9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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'