mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
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.
This commit is contained in:
parent
1bf4c2d2c9
commit
53d019cf5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue