PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/boto-2.5.2/tests/mturk/run-doctest.py

#
Python | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | ca146c4c7e3c34ceb3c003860bc79200 MD5 | raw file
 1import argparse
 2import doctest
 3
 4parser = argparse.ArgumentParser(
 5	description="Run a test by name"
 6	)
 7parser.add_argument('test_name')
 8args = parser.parse_args()
 9
10doctest.testfile(
11	args.test_name,
12	optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
13	)