Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
e73a6956 by Дилян Палаузов at 2022-04-18T17:10:09+03:00
Simplify test_confirm.py:test_confirm_with_non_ascii_from_and_subject()
- - - - -
9b4e1373 by Mark Sapiro at 2022-04-18T16:22:59+00:00
Merge branch 'simplify_test_confirm_with_non_ascii_from_and_subject'
into 'master'
Simplify test_confirm.py:test_confirm_with_non_ascii_from_and_subject()
See merge request mailman/mailman!1013
- - - - -
1 changed file:
- src/mailman/runners/tests/test_confirm.py
Changes:
=====================================
src/mailman/runners/tests/test_confirm.py
=====================================
@@ -402,9 +402,6 @@ bad-command
# This should send out one email that confirms that token was accepted.
items = get_queue_messages('virgin', expected_count=1)
msg_result = items[0].msg
- payload = msg_result.get_payload()
- encoding = msg_result.get('Content-Transfer-Encoding')
- if encoding and encoding.lower() == 'base64':
- payload = base64.b64decode(payload).decode('utf-8')
+ payload = msg_result.get_payload(decode=True).decode()
self.assertIn('Ана <[email protected]>', payload)
self.assertIn('Къща', payload)
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/8e14d85402298d4e55401a90b279b1e1446c917a...9b4e13735f640e058e5dca0ada11b610b0807b1f
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/8e14d85402298d4e55401a90b279b1e1446c917a...9b4e13735f640e058e5dca0ada11b610b0807b1f
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]