Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core


Commits:
70373ea1 by Mark Sapiro at 2021-02-05T20:29:42-08:00
Skip test_as_string_python_bug_27321 for Python versions where fixed.

- - - - -
45d98318 by Mark Sapiro at 2021-02-06T04:54:33+00:00
Merge branch 'test' into 'master'

Skip test_as_string_python_bug_27321 for Python versions where fixed.

Closes #823

See merge request mailman/mailman!772
- - - - -


1 changed file:

- src/mailman/email/tests/test_message.py


Changes:

=====================================
src/mailman/email/tests/test_message.py
=====================================
@@ -17,6 +17,7 @@
 
 """Test the message API."""
 
+import sys
 import unittest
 
 from email import message_from_binary_file
@@ -107,6 +108,10 @@ Test content
         self.assertEqual(msg.get_payload(), 'Non-ascii text ?.')
 
     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)



View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/05a029225531daad5b6ab203df2c810af13c89d1...45d98318c32ee339b790d0126297b302a2d5a182

-- 
View it on GitLab: 
https://gitlab.com/mailman/mailman/-/compare/05a029225531daad5b6ab203df2c810af13c89d1...45d98318c32ee339b790d0126297b302a2d5a182
You're receiving this email because of your account on gitlab.com.


_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to