python/dist/src/Lib/distutils/tests test_build_py.py, 1.1, 1.2 test_build_scripts.py, 1.1, 1.2 test_install_scripts.py, 1.3, 1.4

Update of /cvsroot/python/python/dist/src/Lib/distutils/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1190 Modified Files: test_build_py.py test_build_scripts.py test_install_scripts.py Log Message: add boilerplate so the test modules can be run as scripts Index: test_build_py.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_build_py.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** test_build_py.py 17 Jun 2004 20:16:19 -0000 1.1 --- test_build_py.py 25 Jun 2004 19:04:20 -0000 1.2 *************** *** 49,50 **** --- 49,53 ---- def test_suite(): return unittest.makeSuite(BuildPyTestCase) + + if __name__ == "__main__": + unittest.main(defaultTest="test_suite") Index: test_build_scripts.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_build_scripts.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** test_build_scripts.py 21 Jun 2004 16:15:22 -0000 1.1 --- test_build_scripts.py 25 Jun 2004 19:04:21 -0000 1.2 *************** *** 73,74 **** --- 73,77 ---- def test_suite(): return unittest.makeSuite(BuildScriptsTestCase) + + if __name__ == "__main__": + unittest.main(defaultTest="test_suite") Index: test_install_scripts.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/tests/test_install_scripts.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_install_scripts.py 17 Jun 2004 20:14:50 -0000 1.3 --- test_install_scripts.py 25 Jun 2004 19:04:21 -0000 1.4 *************** *** 71,75 **** - def test_suite(): return unittest.makeSuite(InstallScriptsTestCase) --- 71,77 ---- def test_suite(): return unittest.makeSuite(InstallScriptsTestCase) + + if __name__ == "__main__": + unittest.main(defaultTest="test_suite")
participants (1)
-
fdrake@users.sourceforge.net