summaryrefslogtreecommitdiffstats
path: root/Lib/email/test/test_email_codecs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/test/test_email_codecs.py')
-rw-r--r--Lib/email/test/test_email_codecs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/email/test/test_email_codecs.py b/Lib/email/test/test_email_codecs.py
index 159989c..38b7d95 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):