Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Explicitly close a file during the email tests.

  • Loading branch information...
commit fc99f127d88df9944e2cff4c36429290c3f32918 1 parent d1d393f
@alex alex authored Alex Gaynor committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  tests/regressiontests/mail/tests.py
View
2  tests/regressiontests/mail/tests.py
@@ -553,6 +553,8 @@ def test_file_sessions(self):
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'
Please sign in to comment.
Something went wrong with that request. Please try again.