def run_docstring_examples(f, globs, verbose=False, name='NoName', compileflags=None, optionflags=0):
 finder = DocTestFinder(verbose=verbose, recurse=False)
 runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
 for test in finder.find(f, name, globs=globs):
  runner.run(test, compileflags=compileflags)

def run_docstring_examples ( f , globs , verbose = False , name = 'NoName' , compileflags = None , optionflags = 0 ) : finder = DocTestFinder ( verbose = verbose , recurse = False ) runner = DocTestRunner ( verbose = verbose , optionflags = optionflags ) for test in finder . find ( f , name , globs = globs ) : runner . run ( test , compileflags = compileflags )
test examples in the given objects docstring (f) .