def testmod_paths_from_testdir(testdir):
 for path in glob.glob(join(testdir, 'test_*.py')):
  (yield path)
 for path in glob.glob(join(testdir, 'test_*')):
  if (not isdir(path)):
   continue
  if (not isfile(join(path, '__init__.py'))):
   continue
  (yield path)

def testmod_paths_from_testdir ( testdir ) : for path in glob . glob ( join ( testdir , 'test_*.py' ) ) : ( yield path ) for path in glob . glob ( join ( testdir , 'test_*' ) ) : if ( not isdir ( path ) ) : continue if ( not isfile ( join ( path , '__init__.py' ) ) ) : continue ( yield path )
generate test module paths in the given dir .