[Python-checkins] r42859 - python/branches/release24-maint/Lib/email/test/test_email_codecs.py

barry.warsaw python-checkins at python.org
Mon Mar 6 01:55:27 CET 2006


Author: barry.warsaw
Date: Mon Mar  6 01:55:25 2006
New Revision: 42859

Modified:
   python/branches/release24-maint/Lib/email/test/test_email_codecs.py
Log:
Skip codecs tests on Python 2.3.


Modified: python/branches/release24-maint/Lib/email/test/test_email_codecs.py
==============================================================================
--- python/branches/release24-maint/Lib/email/test/test_email_codecs.py	(original)
+++ python/branches/release24-maint/Lib/email/test/test_email_codecs.py	Mon Mar  6 01:55:25 2006
@@ -10,6 +10,13 @@
 from email.Header import Header, decode_header
 from email.Message import Message
 
+# We're compatible with Python 2.3, but it doesn't have the built-in Asian
+# codecs, so we have to skip all these tests.
+try:
+    unicode('foo', 'euc-jp')
+except LookupError:
+    raise TestSkipped
+
 
 
 class TestEmailAsianCodecs(TestEmailBase):


More information about the Python-checkins mailing list