def run_examples(windowed=False, quiet=False, summary=True):
 successes = []
 failures = []
 examples = TERMINAL_EXAMPLES
 if windowed:
  examples += WINDOWED_EXAMPLES
 if quiet:
  from sympy.utilities.runtests import PyTestReporter
  reporter = PyTestReporter()
  reporter.write('Testing Examples\n')
  reporter.write(('-' * reporter.terminal_width))
 else:
  reporter = None
 for example in examples:
  if run_example(example, reporter=reporter):
   successes.append(example)
  else:
   failures.append(example)
 if summary:
  show_summary(successes, failures, reporter=reporter)
 return (len(failures) == 0)

def run_examples ( windowed = False , quiet = False , summary = True ) : successes = [ ] failures = [ ] examples = TERMINAL_EXAMPLES if windowed : examples += WINDOWED_EXAMPLES if quiet : from sympy . utilities . runtests import PyTestReporter reporter = PyTestReporter ( ) reporter . write ( 'Testing Examples\n' ) reporter . write ( ( '-' * reporter . terminal_width ) ) else : reporter = None for example in examples : if run_example ( example , reporter = reporter ) : successes . append ( example ) else : failures . append ( example ) if summary : show_summary ( successes , failures , reporter = reporter ) return ( len ( failures ) == 0 )
run all examples in the list of modules .