def get_doctests(text_file_dir):
 paths = [os.path.normpath(os.path.join(text_file_dir, path)) for path in TEXT_DOCTEST_PATHS]
 if (sys.version_info >= (3,)):
  paths = []
 suites = []
 for path in paths:
  suite = doctest.DocFileSuite(path, module_relative=False)
  suites.append(suite)
 modules = get_module_names()
 for module in modules:
  suite = doctest.DocTestSuite(module)
  suites.append(suite)
 return suites

def get_doctests ( text_file_dir ) : paths = [ os . path . normpath ( os . path . join ( text_file_dir , path ) ) for path in TEXT_DOCTEST_PATHS ] if ( sys . version_info >= ( 3 , ) ) : paths = [ ] suites = [ ] for path in paths : suite = doctest . DocFileSuite ( path , module_relative = False ) suites . append ( suite ) modules = get_module_names ( ) for module in modules : suite = doctest . DocTestSuite ( module ) suites . append ( suite ) return suites
return a list of testsuite instances for all doctests in the project .