def loadTestModules(testFiles, rootDir, rootModule):
    modules = set()
    for f in testFiles:
        try:
            with DirectoryScope.DirectoryScope(os.path.split(f)[0]):
                moduleName  = fileNameToModuleName(f, rootDir, rootModule)
                logging.info('importing module %s', moduleName)
                __import__(moduleName)
                modules.add(sys.modules[moduleName])
        except __HOLE__:
            logging.error("Failed to load test module: %s", moduleName)
            traceback.print_exc()
            raise

    return modules
dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py/loadTestModules