summaryrefslogtreecommitdiff
path: root/tests/mail
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-02-09 19:18:48 +0500
committerTim Graham <timograham@gmail.com>2019-02-09 09:18:48 -0500
commit1933e56eca1ad17de7dd133bfb7cbee9858a75a3 (patch)
tree3dbc7a8fa58cba631591ebdfa22c687948fbb887 /tests/mail
parentb1a2ad69251053a5f1ce71ffa95b188c4a765388 (diff)
downloaddjango-1933e56eca1ad17de7dd133bfb7cbee9858a75a3.tar.gz
Removed uneeded generator expressions and list comprehensions.
Diffstat (limited to 'tests/mail')
-rw-r--r--tests/mail/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mail/tests.py b/tests/mail/tests.py
index 029d332c42..9d8d21c3e7 100644
--- a/tests/mail/tests.py
+++ b/tests/mail/tests.py
@@ -844,8 +844,8 @@ class BaseEmailBackendTests(HeadersCheckMixin):
def test_send_many(self):
email1 = EmailMessage('Subject', 'Content1', 'from@example.com', ['to@example.com'])
email2 = EmailMessage('Subject', 'Content2', 'from@example.com', ['to@example.com'])
- # send_messages() may take a list or a generator.
- emails_lists = ([email1, email2], (email for email in [email1, email2]))
+ # send_messages() may take a list or an iterator.
+ emails_lists = ([email1, email2], iter((email1, email2)))
for emails_list in emails_lists:
num_sent = mail.get_connection().send_messages(emails_list)
self.assertEqual(num_sent, 2)