Skip to content

Commit

Permalink
skip content-transfer-encoding: 8bit tests for Python 3.5; the corr…
Browse files Browse the repository at this point in the history
…esponding messages could not be sent anyway due to #30
  • Loading branch information
d-maurer committed Jul 17, 2020
1 parent 9ce0032 commit 895596b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Products/MailHost/tests/testMailHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import os.path
import shutil
import sys
import tempfile
import unittest
from email import message_from_string
Expand All @@ -41,6 +42,8 @@
from email import message_from_bytes
parse_message = message_from_bytes

PY36 = sys.version_info[0:2] >= (3, 6)


class TestMailHost(unittest.TestCase):

Expand Down Expand Up @@ -510,6 +513,7 @@ def testExplicit7bitEncoding(self):
A Message""")

@unittest.skipUnless(PY36, "requires Python 3.6+")
def testExplicit8bitEncoding(self):
mailhost = self._makeOne('MailHost')
# We pass an encoded string with unspecified charset, it should be
Expand Down Expand Up @@ -709,6 +713,7 @@ def testStartQueueProcessorThread(self):
md = zope.sendmail.maildir.Maildir(self.smtp_queue_directory)
self.assertEqual(len(list(md)), 1)

@unittest.skipUnless(PY36, "requires Python 3.6+")
def test_8bit_special(self):
mh = self._makeOne('MailHost')
mh.send(u"""\
Expand Down

0 comments on commit 895596b

Please sign in to comment.