#NEWLINE# def test_doctests( ) : #NEWLINE# #INDENT# 'Generate each doctest.' #NEWLINE# verbose = False #NEWLINE# raise_error = True #NEWLINE# for document in ( text_files + modules ) : #NEWLINE# #INDENT# if isinstance ( document , str ) : #NEWLINE# #INDENT# name = ( 'Doctests for %s' % ( document , ) ) #NEWLINE# if ( not document . startswith ( os . sep ) ) : #NEWLINE# #INDENT# document = os . path . join ( base , document ) #NEWLINE# #UNINDENT# ( yield ( set_func_description ( doctest_file , name ) , document , verbose , raise_error ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = ( 'Doctests for %s' % ( document . __name__ , ) ) #NEWLINE# ( yield ( set_func_description ( doctest_module , name ) , document , document , raise_error ) )