#NEWLINE# def loadTestsFromModule( self , module ) : #NEWLINE# #INDENT# if ( not self . matches ( module . __name__ ) ) : #NEWLINE# #INDENT# log . debug ( "Doctest doesn't want module %s" , module ) #NEWLINE# return #NEWLINE# #UNINDENT# tests = self . finder . find ( module_file , globs = self . globs , extraglobs = self . extraglobs ) #NEWLINE# if ( not tests ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# optionflags = ( doctest . NORMALIZE_WHITESPACE | doctest . ELLIPSIS ) #NEWLINE# tests . sort ( ) #NEWLINE# module_file = module . __file__ #NEWLINE# if ( module_file [ ( - 4 ) : ] in ( '.pyc' , '.pyo' ) ) : #NEWLINE# #INDENT# module_file = module_file [ : ( - 1 ) ] #NEWLINE# #UNINDENT# for test in tests : #NEWLINE# #INDENT# if ( not test . examples ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( not test . filename ) : #NEWLINE# #INDENT# test . filename = module_file #NEWLINE# #UNINDENT# ( yield DocTestCase ( test , optionflags = optionflags , checker = self . checker ) )