(*args, **kws)
return 0 if run_examples(windowed=options.windowed, quiet=options.quiet,
                             summary=not options.no_summary) else 1
Main script runner
Main script runner
Main script runner
def main(*args, **kws):
    """Main script runner"""
    parser = optparse.OptionParser()
    parser.add_option('-w', '--windowed', action="store_true", dest="windowed",
        help="also run examples requiring windowed environment")
    parser.add_option('-q', '--quiet', action="store_true", dest="quiet",
        help="runs examples in 'quiet mode' suppressing example output and \
              showing simple status messages.")
    parser.add_option('--no-summary', action="store_true", dest="no_summary",
        help="hides the summary at the end of testing the examples")

    (options, _) = parser.parse_args()

    return 0 if run_examples(windowed=options.windowed, quiet=options.quiet,
                             summary=not options.no_summary) else 1
def main ( * args , * * kws ) : parser = optparse . OptionParser ( ) parser . add_option ( '-w' , '--windowed' , action = "store_true" , dest = "windowed" , help = "also run examples requiring windowed environment" ) parser . add_option ( '-q' , '--quiet' , action = "store_true" , dest = "quiet" , help = "runs examples in 'quiet mode' suppressing example output and \
              showing simple status messages." ) parser . add_option ( '--no-summary' , action = "store_true" , dest = "no_summary" , help = "hides the summary at the end of testing the examples" ) ( options , _ ) = parser . parse_args ( ) return 0 if run_examples ( windowed = options . windowed , quiet = options . quiet , summary = not options . no_summary ) else 1