Permalink
Browse files

Explicitly close a file during the email tests.

  • Loading branch information...
1 parent d1d393f commit fc99f127d88df9944e2cff4c36429290c3f32918 @alex alex committed with Alex Gaynor Aug 15, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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'

0 comments on commit fc99f12

Please sign in to comment.