From 39be80600b9e6cb74978fa86c7c2b4956e7ff12b Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 6 Mar 2006 00:55:25 +0000 Subject: [PATCH] Skip codecs tests on Python 2.3. --- Lib/email/test/test_email_codecs.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): -- 2.47.3