def getSubDirectories(testdir):
 subdirs = [os.path.join(testdir, d) for d in filter(os.path.isdir, [os.path.join(testdir, dd) for dd in os.listdir(testdir)])]
 for d in copy(subdirs):
  subdirs.extend(getSubDirectories(os.path.join(testdir, d)))
 return subdirs

def getSubDirectories ( testdir ) : subdirs = [ os . path . join ( testdir , d ) for d in filter ( os . path . isdir , [ os . path . join ( testdir , dd ) for dd in os . listdir ( testdir ) ] ) ] for d in copy ( subdirs ) : subdirs . extend ( getSubDirectories ( os . path . join ( testdir , d ) ) ) return subdirs
recursively builds a list of all subdirectories in the test suite .