+++ /dev/null
-"""Test suite for distutils.\r
-\r
-This test suite consists of a collection of test modules in the\r
-distutils.tests package. Each test module has a name starting with\r
-'test' and contains a function test_suite(). The function is expected\r
-to return an initialized unittest.TestSuite instance.\r
-\r
-Tests for the command classes in the distutils.command package are\r
-included in distutils.tests as well, instead of using a separate\r
-distutils.command.tests package, since command identification is done\r
-by import rather than matching pre-defined names.\r
-\r
-"""\r
-\r
-import os\r
-import sys\r
-import unittest\r
-from test.test_support import run_unittest\r
-\r
-\r
-here = os.path.dirname(__file__) or os.curdir\r
-\r
-\r
-def test_suite():\r
- suite = unittest.TestSuite()\r
- for fn in os.listdir(here):\r
- if fn.startswith("test") and fn.endswith(".py"):\r
- modname = "distutils.tests." + fn[:-3]\r
- __import__(modname)\r
- module = sys.modules[modname]\r
- suite.addTest(module.test_suite())\r
- return suite\r
-\r
-\r
-if __name__ == "__main__":\r
- run_unittest(test_suite())\r