PageRenderTime 68ms CodeModel.GetById 22ms RepoModel.GetById 0ms 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
  1. import argparse
  2. import doctest
  3. parser = argparse.ArgumentParser(
  4. description="Run a test by name"
  5. )
  6. parser.add_argument('test_name')
  7. args = parser.parse_args()
  8. doctest.testfile(
  9. args.test_name,
  10. optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
  11. )