]> granicus.if.org Git - python/commitdiff
Changed import from
authorTim Peters <tim.peters@gmail.com>
Sun, 21 Jul 2002 06:06:30 +0000 (06:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 21 Jul 2002 06:06:30 +0000 (06:06 +0000)
    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.

Lib/email/test/test_email_codecs.py

index 0f681519e424660e6fc9d7a563a3ac369115a867..63912efb3788ac3881c8bedbacf6aa880cfccddc 100644 (file)
@@ -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