summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-06-25 19:04:21 (GMT)
committerFred Drake <fdrake@acm.org>2004-06-25 19:04:21 (GMT)
commit22021579a9266f537bed1fbbb9b5496c65362fa0 (patch)
treeadbb7e90f079a2c27717fa7fa9afcc569f6d5683 /Lib
parent43ea47ff06295924c4f7512417370f988d1ea7da (diff)
downloadcpython-22021579a9266f537bed1fbbb9b5496c65362fa0.zip
cpython-22021579a9266f537bed1fbbb9b5496c65362fa0.tar.gz
cpython-22021579a9266f537bed1fbbb9b5496c65362fa0.tar.bz2
add boilerplate so the test modules can be run as scripts
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_build_py.py3
-rw-r--r--Lib/distutils/tests/test_build_scripts.py3
-rw-r--r--Lib/distutils/tests/test_install_scripts.py4
3 files changed, 9 insertions, 1 deletions
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")