]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip codecs tests on Python 2.3.
authorBarry Warsaw <barry@python.org>
Mon, 6 Mar 2006 00:55:25 +0000 (00:55 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 6 Mar 2006 00:55:25 +0000 (00:55 +0000)
Lib/email/test/test_email_codecs.py

index 159989c9e2c63ec36bfb8c7c028ae160093750c5..38b7d9539258671c71ab61b303ee2834f3702352 100644 (file)
@@ -10,6 +10,13 @@ from email.Charset import Charset
 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
+
 
 \f
 class TestEmailAsianCodecs(TestEmailBase):