+ verbose : bool
+ Do you want to see the name and result of each test as
+ it is run?
+
+ """
+ # Running the test suite clobbers it! And deepcopy() doesn't work
+ # on a suite that contains doctests! ARRRGRRGRRGRHG!!!!!! You're all
+ # idiots.
+ verbosity = 1
+ if verbose: verbosity = 2
+ result = run_suite(build_suite(doctests), verbosity)
+
+ if result.wasSuccessful() and not loop:
+ return 0
+
+ if loop:
+ passed = 0
+ while result.wasSuccessful():
+ print('Passed: {:d}'.format(passed))
+ passed += 1
+ result = run_suite(build_suite(doctests), verbosity)
+
+ return 1
+
+
+if __name__ == '__main__':
+ doctests = not "--no-doctests" in argv
+ loop = '--loop' in argv
+ verbose = '--verbose' in argv
+ exit(main(doctests, loop, verbose))