diff options
| author | Fred Drake <fdrake@acm.org> | 2004-06-25 19:04:21 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2004-06-25 19:04:21 +0000 |
| commit | 08c14ecdbb73fbb9036506e74a2bdf742ee5b13a (patch) | |
| tree | 3ea91051b8f9d7f0580e2c217f09627a0c5c3cec | |
| parent | b20a6ccc211060644ff3e6f89428420fa59f5a5d (diff) | |
| download | python-setuptools-git-08c14ecdbb73fbb9036506e74a2bdf742ee5b13a.tar.gz | |
add boilerplate so the test modules can be run as scripts
| -rw-r--r-- | tests/test_build_py.py | 3 | ||||
| -rw-r--r-- | tests/test_build_scripts.py | 3 | ||||
| -rw-r--r-- | tests/test_install_scripts.py | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_build_py.py b/tests/test_build_py.py index 6cdce2c7..757d757c 100644 --- a/tests/test_build_py.py +++ b/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/tests/test_build_scripts.py b/tests/test_build_scripts.py index 0cfef4e5..7ef71cc1 100644 --- a/tests/test_build_scripts.py +++ b/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/tests/test_install_scripts.py b/tests/test_install_scripts.py index 0a11abf6..2e86dcd8 100644 --- a/tests/test_install_scripts.py +++ b/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") |
