def runModuleTestSuite(module):
 suite = TestSuite([TestLoader().loadTestsFromModule(module)])
 optionflags = (((ELLIPSIS | NORMALIZE_WHITESPACE) | REPORT_ONLY_FIRST_FAILURE) | IGNORE_EXCEPTION_DETAIL)
 try:
  suite.addTest(DocTestSuite(module), optionflags=optionflags)
 except ValueError:
  pass
 TextTestRunner().run(suite)

def runModuleTestSuite ( module ) : suite = TestSuite ( [ TestLoader ( ) . loadTestsFromModule ( module ) ] ) optionflags = ( ( ( ELLIPSIS | NORMALIZE_WHITESPACE ) | REPORT_ONLY_FIRST_FAILURE ) | IGNORE_EXCEPTION_DETAIL ) try : suite . addTest ( DocTestSuite ( module ) , optionflags = optionflags ) except ValueError : pass TextTestRunner ( ) . run ( suite )
runs a test suite for all local tests .