From: Barry Warsaw Date: Mon, 6 Mar 2006 00:55:25 +0000 (+0000) Subject: Skip codecs tests on Python 2.3. X-Git-Tag: v2.4.3c1~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39be80600b9e6cb74978fa86c7c2b4956e7ff12b;p=thirdparty%2FPython%2Fcpython.git Skip codecs tests on Python 2.3. --- diff --git a/Lib/email/test/test_email_codecs.py b/Lib/email/test/test_email_codecs.py index 159989c9e2c6..38b7d9539258 100644 --- a/Lib/email/test/test_email_codecs.py +++ b/Lib/email/test/test_email_codecs.py @@ -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 + class TestEmailAsianCodecs(TestEmailBase):