Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 470288c

Browse files
committed
test_mondo_message(): "binary" is not a legal content type, so with
the previous RFC 2045, $5.2 repair to get_content_type() this subpart's type will now be text/plain.
1 parent 58fb61c commit 470288c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/email/test/test_email_torture.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class TestCrispinTorture(TortureBase):
4747
# Mark Crispin's torture test from the SquirrelMail project
4848
def test_mondo_message(self):
4949
eq = self.assertEqual
50+
neq = self.ndiffAssertEqual
5051
msg = self._msgobj('crispin-torture.txt')
5152
payload = msg.get_payload()
5253
eq(type(payload), ListType)
@@ -57,7 +58,7 @@ def test_mondo_message(self):
5758
# dump its structure and compare it against the known structure.
5859
fp = StringIO()
5960
_structure(msg, fp=fp)
60-
eq(fp.getvalue(), """\
61+
neq(fp.getvalue(), """\
6162
multipart/mixed
6263
text/plain
6364
message/rfc822
@@ -100,7 +101,7 @@ def test_mondo_message(self):
100101
message/rfc822
101102
multipart/mixed
102103
application/postscript
103-
binary
104+
text/plain
104105
message/rfc822
105106
multipart/mixed
106107
text/plain

0 commit comments

Comments
 (0)