diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2012-08-15 02:16:28 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@rd.io> | 2012-08-15 02:16:28 -0700 |
| commit | fc99f127d88df9944e2cff4c36429290c3f32918 (patch) | |
| tree | de58bff0a3f2a09b45b7cccabd3b77f714bd441b | |
| parent | d1d393f975f5b14ce465fd85309520bd3c7d9162 (diff) | |
Explicitly close a file during the email tests.
| -rw-r--r-- | tests/regressiontests/mail/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/mail/tests.py b/tests/regressiontests/mail/tests.py index c948662bc3..3e9ae84650 100644 --- a/tests/regressiontests/mail/tests.py +++ b/tests/regressiontests/mail/tests.py @@ -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' |
