[Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py,1.1,1.2

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 20 Jul 2002 23:06:32 -0700


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory usw-pr-cvs1:/tmp/cvs-serv3289/python/lib/email/test

Modified Files:
	test_email_codecs.py 
Log Message:
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.


Index: test_email_codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email_codecs.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_email_codecs.py	19 Jul 2002 22:29:00 -0000	1.1
--- test_email_codecs.py	21 Jul 2002 06:06:30 -0000	1.2
***************
*** 3,7 ****
  
  import unittest
! from test.test_support import TestSkipped, run_unittest
  
  from email.test.test_email import TestEmailBase
--- 3,7 ----
  
  import unittest
! from test_support import TestSkipped, run_unittest
  
  from email.test.test_email import TestEmailBase