Logo Search packages:      
Sourcecode: qtorrent version File versions

def pyqtorrent::BitTornado::BT1::testtest::try_all (   excludes = [],
  excluded_paths = [] 
)

tests all imported modules

takes an optional list of module names and/or module objects to skip over.
modules from files under under any of excluded_paths are also skipped.

Definition at line 18 of file testtest.py.

00018                                              :
    """
    tests all imported modules

    takes an optional list of module names and/or module objects to skip over.
    modules from files under under any of excluded_paths are also skipped.
    """
    failed = []
    for modulename, module in sys.modules.items():
        # skip builtins
        if not hasattr(module, '__file__'):
            continue
        # skip modules under any of excluded_paths
        if [p for p in excluded_paths if module.__file__.startswith(p)]:
            continue
        if modulename not in excludes and module not in excludes:
            try_module(module, modulename, failed)
    print_failed(failed)

def try_single(m):


Generated by  Doxygen 1.6.0   Back to index