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:
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…
x
Reference in New Issue
Block a user