forked from mirror/django-mailbox
Use generator in Mailbox.get_mail to limit memory leak (#149)
* Use generator in Mailbox.get_mail to limit memory leak * Fix generator support in tests/base.py
This commit is contained in:
parent
a299a00506
commit
2b2bdb9825
4 changed files with 24 additions and 14 deletions
|
|
@ -32,5 +32,5 @@ class TestMailbox(TestCase):
|
|||
'generic_message.eml',
|
||||
))
|
||||
self.assertEqual(mailbox.last_polling, None)
|
||||
mailbox.get_new_mail()
|
||||
list(mailbox.get_new_mail())
|
||||
self.assertNotEqual(mailbox.last_polling, None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue