else:
annotate_source = True
+ try:
+ sys.argv.remove("-vv")
+ except ValueError:
+ try:
+ sys.argv.remove("-v")
+ except ValueError:
+ verbosity = 0
+ else:
+ verbosity = 1
+ else:
+ verbosity = 2
+
import re
selectors = [ re.compile(r, re.I|re.U).search for r in sys.argv[1:] ]
if not selectors:
if coverage is not None:
coverage.start()
- unittest.TextTestRunner(verbosity=2).run(test_suite)
+ unittest.TextTestRunner(verbosity=verbosity).run(test_suite)
if coverage is not None:
coverage.stop()