[Python-checkins] r76279 - in python/branches/py3k: Lib/test/regrtest.py Misc/NEWS
r.david.murray
python-checkins at python.org
Sun Nov 15 01:23:21 CET 2009
Author: r.david.murray
Date: Sun Nov 15 01:23:21 2009
New Revision: 76279
Log:
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.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/regrtest.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k/Lib/test/regrtest.py (original)
+++ python/branches/py3k/Lib/test/regrtest.py Sun Nov 15 01:23:21 2009
@@ -370,6 +370,10 @@
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:
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sun Nov 15 01:23:21 2009
@@ -378,6 +378,9 @@
Tests
-----
+- Issue #7324: add a sanity check to regrtest argument parsing to
+ catch the case of an option with no handler.
+
- Issue #7312: Add a -F flag to run the selected tests in a loop until
a test fails. Can be combined with -j.
More information about the Python-checkins
mailing list