[Python-checkins] python/dist/src/Lib/test test_email_codecs.py,NONE,1.5.2.1 regrtest.py,1.70.4.2,1.70.4.3 test_email.py,1.24.4.2,1.24.4.3

barry@users.sourceforge.net barry@users.sourceforge.net
Fri, 04 Oct 2002 10:24:26 -0700


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

Modified Files:
      Tag: release22-maint
	regrtest.py test_email.py 
Added Files:
      Tag: release22-maint
	test_email_codecs.py 
Log Message:
Backporting of email 2.4 from Python 2.3.  Many newly added modules,
some updated modules, updated documentation, and updated tests.  Note
that Lib/test/regrtest.py added test_email_codecs to the expected
skips for all platforms.  Also note that test_email_codecs.py differs
slightly from its Python 2.3 counterpart due to the difference in
package location for TestSkipped.


--- NEW FILE: test_email_codecs.py ---
# Copyright (C) 2002 Python Software Foundation
# email package unit tests for (optional) Asian codecs

import unittest
# The specific tests now live in Lib/email/test
from email.test.test_email_codecs import suite



if __name__ == '__main__':
    unittest.main(defaultTest='suite')

Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.70.4.2
retrieving revision 1.70.4.3
diff -C2 -d -r1.70.4.2 -r1.70.4.3
*** regrtest.py	30 Sep 2002 16:16:12 -0000	1.70.4.2
--- regrtest.py	4 Oct 2002 17:24:24 -0000	1.70.4.3
***************
*** 485,488 ****
--- 485,489 ----
          test_dbm
          test_dl
+         test_email_codecs
          test_fcntl
          test_fork1
***************
*** 512,515 ****
--- 513,517 ----
          test_curses
          test_dl
+         test_email_codecs
          test_gl
          test_imgfile
***************
*** 535,538 ****
--- 537,541 ----
          test_dbm
          test_dl
+         test_email_codecs
          test_fcntl
          test_fork1
***************
*** 568,571 ****
--- 571,575 ----
          test_cl
          test_dl
+         test_email_codecs
          test_gl
          test_imgfile
***************
*** 592,595 ****
--- 596,600 ----
          test_cl
          test_dl
+         test_email_codecs
          test_gl
          test_imgfile
***************
*** 617,620 ****
--- 622,626 ----
          test_cl
          test_dl
+         test_email_codecs
          test_fork1
          test_gettext
***************
*** 653,656 ****
--- 659,663 ----
          test_dbm
          test_dl
+         test_email_codecs
          test_fcntl
          test_fork1
***************
*** 691,694 ****
--- 698,702 ----
          test_curses
          test_dl
+         test_email_codecs
          test_gdbm
          test_gl

Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_email.py,v
retrieving revision 1.24.4.2
retrieving revision 1.24.4.3
diff -C2 -d -r1.24.4.2 -r1.24.4.3
*** test_email.py	22 Mar 2002 16:19:30 -0000	1.24.4.2
--- test_email.py	4 Oct 2002 17:24:24 -0000	1.24.4.3
***************
*** 2,1132 ****
  # email package unit tests
  
- import os
- import time
  import unittest
! import base64
! from cStringIO import StringIO
! from types import StringType
! 
! import email
[...1112 lines suppressed...]
  
  
  
- def test_main():
-     from test_support import run_suite
-     run_suite(suite())
- 
  if __name__ == '__main__':
!     test_main()
--- 2,11 ----
  # email package unit tests
  
  import unittest
! # The specific tests now live in Lib/email/test
! from email.test.test_email import suite
  
  
  
  if __name__ == '__main__':
!     unittest.main(defaultTest='suite')