Explicitly close a file during the email tests.
This commit is contained in:
parent
d1d393f975
commit
fc99f127d8
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue