mirror of https://github.com/python/cpython
Merged revisions 76276 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76276 | r.david.murray | 2009-11-14 19:04:32 -0500 (Sat, 14 Nov 2009) | 3 lines Issue 7324: add a sanity check to regrtest argument parsing to catch the case of an option with no handler. ........
This commit is contained in:
parent
18163c3f14
commit
35768ad4f5
|
@ -370,6 +370,10 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
print() # Force a newline (just in case)
|
||||
print(json.dumps(result))
|
||||
sys.exit(0)
|
||||
else:
|
||||
print(("No handler for option {}. Please report this as a bug "
|
||||
"at http://bugs.python.org.").format(o), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
if single and fromfile:
|
||||
usage("-s and -f don't go together!")
|
||||
if use_mp and trace:
|
||||
|
|
Loading…
Reference in New Issue