File fix_test_lazy_addresses.patch of Package python-Django.18539

--- Django-2.2.28.orig/tests/mail/tests.py	2022-04-11 09:21:57.000000000 +0200
+++ Django-2.2.28/tests/mail/tests.py	2024-03-08 13:35:16.079789809 +0100
@@ -1033,17 +1033,17 @@
         Email sending should support lazy email addresses (#24416).
         """
         _ = gettext_lazy
-        self.assertTrue(send_mail('Subject', 'Content', _('tester'), [_('django')]))
+        self.assertTrue(send_mail('Subject', 'Content', 'tester', ['django']))
         message = self.get_the_message()
         self.assertEqual(message.get('from'), 'tester')
         self.assertEqual(message.get('to'), 'django')
 
         self.flush_mailbox()
         m = EmailMessage(
-            'Subject', 'Content', _('tester'), [_('to1'), _('to2')],
-            cc=[_('cc1'), _('cc2')],
-            bcc=[_('bcc')],
-            reply_to=[_('reply')],
+            'Subject', 'Content', 'tester', ['to1', 'to2'],
+            cc=['cc1', 'cc2'],
+            bcc=['bcc'],
+            reply_to=['reply'],
         )
         self.assertEqual(m.recipients(), ['to1', 'to2', 'cc1', 'cc2', 'bcc'])
         m.send()
openSUSE Build Service is sponsored by