def doctest_suite(module_names):
 import doctest
 suite = TestSuite()
 for mod in load_modules(module_names):
  suite.addTest(doctest.DocTestSuite(mod))
 return suite

def doctest_suite ( module_names ) : import doctest suite = TestSuite ( ) for mod in load_modules ( module_names ) : suite . addTest ( doctest . DocTestSuite ( mod ) ) return suite
makes a test suite from doctests .