Back to index

python3.2  3.2.2
Namespaces | Functions | Variables
distutils.tests Namespace Reference

Namespaces

namespace  support
namespace  test_archive_util
namespace  test_bdist
namespace  test_bdist_dumb
namespace  test_bdist_msi
namespace  test_bdist_rpm
namespace  test_bdist_wininst
namespace  test_build
namespace  test_build_clib
namespace  test_build_ext
namespace  test_build_py
namespace  test_build_scripts
namespace  test_check
namespace  test_clean
namespace  test_cmd
namespace  test_config
namespace  test_config_cmd
namespace  test_core
namespace  test_cygwinccompiler
namespace  test_dep_util
namespace  test_dir_util
namespace  test_dist
namespace  test_extension
namespace  test_file_util
namespace  test_filelist
namespace  test_install
namespace  test_install_data
namespace  test_install_headers
namespace  test_install_lib
namespace  test_install_scripts
namespace  test_log
namespace  test_msvc9compiler
namespace  test_register
namespace  test_sdist
namespace  test_spawn
namespace  test_sysconfig
namespace  test_text_file
namespace  test_unixccompiler
namespace  test_upload
namespace  test_util
namespace  test_version
namespace  test_versionpredicate

Functions

def test_suite

Variables

tuple here = os.path.dirname(__file__)

Detailed Description

Test suite for distutils.

This test suite consists of a collection of test modules in the
distutils.tests package.  Each test module has a name starting with
'test' and contains a function test_suite().  The function is expected
to return an initialized unittest.TestSuite instance.

Tests for the command classes in the distutils.command package are
included in distutils.tests as well, instead of using a separate
distutils.command.tests package, since command identification is done
by import rather than matching pre-defined names.

Function Documentation

Definition at line 24 of file __init__.py.

00024 
00025 def test_suite():
00026     suite = unittest.TestSuite()
00027     for fn in os.listdir(here):
00028         if fn.startswith("test") and fn.endswith(".py"):
00029             modname = "distutils.tests." + fn[:-3]
00030             __import__(modname)
00031             module = sys.modules[modname]
00032             suite.addTest(module.test_suite())
00033     return suite
00034 

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

tuple distutils.tests.here = os.path.dirname(__file__)

Definition at line 21 of file __init__.py.