/boto-2.5.2/tests/mturk/run-doctest.py
# · Python · 13 lines · 11 code · 2 blank · 0 comment · 0 complexity · ca146c4c7e3c34ceb3c003860bc79200 MD5 · raw file
- import argparse
- import doctest
-
- parser = argparse.ArgumentParser(
- description="Run a test by name"
- )
- parser.add_argument('test_name')
- args = parser.parse_args()
-
- doctest.testfile(
- args.test_name,
- optionflags=doctest.REPORT_ONLY_FIRST_FAILURE
- )