summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-21 06:06:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-21 06:06:30 (GMT)
commit53d019cf5ac96bc609781e8a37d97899292ff40d (patch)
treea1f6ec9324b1af6ee1cc8c56450a03ad5a7ec9c1 /Lib/email
parent1bf4c2d2c9cc70f9b3de8a8b54dde20e5939bd50 (diff)
downloadcpython-53d019cf5ac96bc609781e8a37d97899292ff40d.zip
cpython-53d019cf5ac96bc609781e8a37d97899292ff40d.tar.gz
cpython-53d019cf5ac96bc609781e8a37d97899292ff40d.tar.bz2
Changed import from
from test.test_support import TestSkipped, run_unittest to from test_support import TestSkipped, run_unittest Otherwise, if the Japanese codecs aren't installed, regrtest doesn't believe the TestSkipped exception raised by this test matches the except (ImportError, test_support.TestSkipped), msg: it's looking for, and reports the skip as a crash failure instead of as a skipped test. I suppose this will make it harder to run this test outside of regrtest, but under the assumption only Barry does that, better to make it skip cleanly for everyone else.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/test/test_email_codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/test/test_email_codecs.py b/Lib/email/test/test_email_codecs.py
index 0f68151..63912ef 100644
--- a/Lib/email/test/test_email_codecs.py
+++ b/Lib/email/test/test_email_codecs.py
@@ -2,7 +2,7 @@
# email package unit tests for (optional) Asian codecs
import unittest
-from test.test_support import TestSkipped, run_unittest
+from test_support import TestSkipped, run_unittest
from email.test.test_email import TestEmailBase
from email.Charset import Charset