Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv3453
Modified Files:
Tag: release22-maint
test_email.py
Log Message:
Backport:
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_email.py,v
retrieving revision 1.24.4.3
retrieving revision 1.24.4.4
diff -C2 -d -r1.24.4.3 -r1.24.4.4
*** test_email.py 4 Oct 2002 17:24:24 -0000 1.24.4.3
--- test_email.py 6 Oct 2002 14:38:00 -0000 1.24.4.4
***************
*** 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()
In directory usw-pr-cvs1:/tmp/cvs-serv3453
Modified Files:
Tag: release22-maint
test_email.py
Log Message:
Backport:
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_email.py,v
retrieving revision 1.24.4.3
retrieving revision 1.24.4.4
diff -C2 -d -r1.24.4.3 -r1.24.4.4
*** test_email.py 4 Oct 2002 17:24:24 -0000 1.24.4.3
--- test_email.py 6 Oct 2002 14:38:00 -0000 1.24.4.4
***************
*** 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()