Mailing List Archive

python/dist/src/Lib/test test_email.py,1.42,1.43
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv3232

Modified Files:
test_email.py
Log Message:
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py. Will backport to 2.2.2.


Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_email.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** test_email.py 19 Jul 2002 22:44:12 -0000 1.42
--- test_email.py 6 Oct 2002 14:37:11 -0000 1.43
***************
*** 5,11 ****
# The specific tests now live in Lib/email/test
from email.test.test_email import suite


-
if __name__ == '__main__':
! unittest.main(defaultTest='suite')
--- 5,13 ----
# The specific tests now live in Lib/email/test
from email.test.test_email import suite
+ from test.test_support import run_suite

+ def test_main():
+ run_suite(suite())

if __name__ == '__main__':
! test_main()