From 22021579a9266f537bed1fbbb9b5496c65362fa0 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 25 Jun 2004 19:04:21 +0000 Subject: add boilerplate so the test modules can be run as scripts --- Lib/distutils/tests/test_build_py.py | 3 +++ Lib/distutils/tests/test_build_scripts.py | 3 +++ Lib/distutils/tests/test_install_scripts.py | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/tests/test_build_py.py b/Lib/distutils/tests/test_build_py.py index 6cdce2c..757d757 100644 --- a/Lib/distutils/tests/test_build_py.py +++ b/Lib/distutils/tests/test_build_py.py @@ -48,3 +48,6 @@ class BuildPyTestCase(support.TempdirManager, unittest.TestCase): def test_suite(): return unittest.makeSuite(BuildPyTestCase) + +if __name__ == "__main__": + unittest.main(defaultTest="test_suite") diff --git a/Lib/distutils/tests/test_build_scripts.py b/Lib/distutils/tests/test_build_scripts.py index 0cfef4e..7ef71cc 100644 --- a/Lib/distutils/tests/test_build_scripts.py +++ b/Lib/distutils/tests/test_build_scripts.py @@ -72,3 +72,6 @@ class BuildScriptsTestCase(support.TempdirManager, unittest.TestCase): def test_suite(): return unittest.makeSuite(BuildScriptsTestCase) + +if __name__ == "__main__": + unittest.main(defaultTest="test_suite") diff --git a/Lib/distutils/tests/test_install_scripts.py b/Lib/distutils/tests/test_install_scripts.py index 0a11abf..2e86dcd 100644 --- a/Lib/distutils/tests/test_install_scripts.py +++ b/Lib/distutils/tests/test_install_scripts.py @@ -70,6 +70,8 @@ class InstallScriptsTestCase(support.TempdirManager, unittest.TestCase): self.assert_(name in installed) - def test_suite(): return unittest.makeSuite(InstallScriptsTestCase) + +if __name__ == "__main__": + unittest.main(defaultTest="test_suite") -- cgit v0.12