diff --git a/tests/py3-ignores.txt b/tests/py3-ignores.txt index f189a4c86da183febca32fbef41523a1d4d3ae46..70d3fb9058be0101d63090a5d2ff98def32cdaf9 100644 --- a/tests/py3-ignores.txt +++ b/tests/py3-ignores.txt @@ -1,6 +1,5 @@ tests/test_exporters.py tests/test_linkextractors_deprecated.py -tests/test_mail.py tests/test_pipeline_files.py tests/test_pipeline_images.py tests/test_proxy_connect.py @@ -22,4 +21,3 @@ scrapy/linkextractors/htmlparser.py scrapy/downloadermiddlewares/cookies.py scrapy/extensions/statsmailer.py scrapy/extensions/memusage.py -scrapy/mail.py diff --git a/tests/test_mail.py b/tests/test_mail.py index 58d44bdb35e0f517d5f2e37d7a97b500fdc1c9ec..25dd35099d3ca10e5f63d7a0b180e75302f5c78d 100644 --- a/tests/test_mail.py +++ b/tests/test_mail.py @@ -53,8 +53,8 @@ class MailSenderTest(unittest.TestCase): self.assertEqual(len(payload), 2) text, attach = payload - self.assertEqual(text.get_payload(decode=True), 'body') - self.assertEqual(attach.get_payload(decode=True), 'content') + self.assertEqual(text.get_payload(decode=True), b'body') + self.assertEqual(attach.get_payload(decode=True), b'content') def _catch_mail_sent(self, **kwargs): self.catched_msg = dict(**kwargs)