def collector():
 setuptools_incompat = ('report', 'prepareTest', 'prepareTestLoader', 'prepareTestRunner', 'setOutputStream')
 plugins = RestrictedPluginManager(exclude=setuptools_incompat)
 conf = Config(files=all_config_files(), plugins=plugins)
 conf.configure(argv=['collector'])
 loader = defaultTestLoader(conf)
 if conf.testNames:
  suite = loader.loadTestsFromNames(conf.testNames)
 else:
  suite = loader.loadTestsFromNames(('.',))
 return FinalizingSuiteWrapper(suite, plugins.finalize)

def collector ( ) : setuptools_incompat = ( 'report' , 'prepareTest' , 'prepareTestLoader' , 'prepareTestRunner' , 'setOutputStream' ) plugins = RestrictedPluginManager ( exclude = setuptools_incompat ) conf = Config ( files = all_config_files ( ) , plugins = plugins ) conf . configure ( argv = [ 'collector' ] ) loader = defaultTestLoader ( conf ) if conf . testNames : suite = loader . loadTestsFromNames ( conf . testNames ) else : suite = loader . loadTestsFromNames ( ( '.' , ) ) return FinalizingSuiteWrapper ( suite , plugins . finalize )
testsuite replacement entry point .