def iter_suites(package):
 for module in find_modules(package, include_packages=True):
  mod = import_string(module)
  if hasattr(mod, 'suite'):
   (yield mod.suite())

def iter_suites ( package ) : for module in find_modules ( package , include_packages = True ) : mod = import_string ( module ) if hasattr ( mod , 'suite' ) : ( yield mod . suite ( ) )
yields all testsuites .