Newer
Older
"""Run all doctests from modules on the command line. Use -v for verbose.
python doctests.py *.py
if __name__ == "__main__":
modules = [__import__(name.replace('.py',''))
for arg in args if arg != "-v" for name in glob.glob(arg)]
for module in modules:
doctest.testmod(module, report=1, optionflags=doctest.REPORT_UDIFF)