mirror of https://github.com/django/django.git
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()
|
||||
self.assertEqual(len(os.listdir(self.tmp_dir)), 3)
|
||||
|
||||
connection.close()
|
||||
|
||||
|
||||
class ConsoleBackendTests(BaseEmailBackendTests, TestCase):
|
||||
email_backend = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
|
Loading…
Reference in New Issue