Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
f6064275 by Mark Sapiro at 2021-02-06T12:36:54-08:00
Test test_as_string_python_bug_27321 for Python versions where fixed.
- - - - -
8b2a0655 by Mark Sapiro at 2021-02-06T22:42:39+00:00
Merge branch 'test' into 'master'
Test test_as_string_python_bug_27321 for Python versions where fixed.
See merge request mailman/mailman!773
- - - - -
1 changed file:
- src/mailman/email/tests/test_message.py
Changes:
=====================================
src/mailman/email/tests/test_message.py
=====================================
@@ -109,14 +109,25 @@ Test content
def test_as_string_python_bug_27321(self):
# Bug 27321 is fixed in Python 3.8.7rc1, 3.9.1rc1 and later.
- if (sys.version_info.minor == 8 and sys.hexversion >= 0x030807C1 or
- sys.hexversion >= 0x030901C1):
- raise unittest.SkipTest
with path('mailman.email.tests.data', 'bad_email.eml') as email_path:
with open(str(email_path), 'rb') as fp:
msg = message_from_binary_file(fp, Message)
fp.seek(0)
text = fp.read().decode('ascii', 'replace')
+ if (sys.version_info.minor == 8 and sys.hexversion >= 0x030807C1 or
+ sys.hexversion >= 0x030901C1):
+ self.assertEqual(msg.as_string(), """\
+To: <[email protected]>
+Subject: =?koi8-r?B?UF9AX/NfQ1/5X+xfS1/p?=
+From: =?koi8-r?B?8sXL0sXB1MnXzs/FIMHHxc7U09TXzw==?=
+Content-Type: text/plain; charset="koi8-r"
+Message-Id: <20160614102505.9OFQ19L1C>
+Content-Transfer-Encoding: base64
+
+/vTvIPTh6+/lIPLl6+zh7e7h8SDy4fPz+ezr4T8K68HLz8ogz9TLzMnLINbEwdTYIM/UINzUz8fP
+IM3F1M/EwSDQz8nTy8Egy8zJxc7Uz9c/Cg==
+""")
+ else:
self.assertEqual(msg.as_string(), text)
def test_as_string_python_bug_32330(self):
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/45d98318c32ee339b790d0126297b302a2d5a182...8b2a06554747222c588f9a1ceb9a227f69a61135
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/45d98318c32ee339b790d0126297b302a2d5a182...8b2a06554747222c588f9a1ceb9a227f69a61135
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: [email protected]