File: run-doctest.py

package info (click to toggle)
python-boto 2.49.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,888 kB
  • sloc: python: 86,396; makefile: 112
file content (13 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
	)