[Python-checkins] r76281 - in python/branches/release31-maint: Lib/test/regrtest.py Misc/NEWS

r.david.murray python-checkins at python.org
Sun Nov 15 01:35:38 CET 2009


Author: r.david.murray
Date: Sun Nov 15 01:35:37 2009
New Revision: 76281
Log:
Merged revisions 76279 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
 r76279 | r.david.murray | 2009年11月14日 19:23:21 -0500 (2009年11月14日) | 10 lines
 
 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 (2009年11月14日) | 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/release31-maint/ (props changed)
 python/branches/release31-maint/Lib/test/regrtest.py
 python/branches/release31-maint/Misc/NEWS
Modified: python/branches/release31-maint/Lib/test/regrtest.py
==============================================================================
--- python/branches/release31-maint/Lib/test/regrtest.py	(original)
+++ python/branches/release31-maint/Lib/test/regrtest.py	Sun Nov 15 01:35:37 2009
@@ -330,6 +330,10 @@
 for m in [msvcrt.CRT_WARN, msvcrt.CRT_ERROR, msvcrt.CRT_ASSERT]:
 msvcrt.CrtSetReportMode(m, msvcrt.CRTDBG_MODE_FILE)
 msvcrt.CrtSetReportFile(m, msvcrt.CRTDBG_FILE_STDERR)
+ 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 generate and verbose:
 usage("-g and -v don't go together!")
 if single and fromfile:
Modified: python/branches/release31-maint/Misc/NEWS
==============================================================================
--- python/branches/release31-maint/Misc/NEWS	(original)
+++ python/branches/release31-maint/Misc/NEWS	Sun Nov 15 01:35:37 2009
@@ -149,6 +149,9 @@
 Tests
 -----
 
+- Issue #7324: add a sanity check to regrtest argument parsing to
+ catch the case of an option with no handler.
+
 - Issue #6551: test_zipimport could import and then destroy some modules of
 the encodings package, which would make other tests fail further down
 the road because the internally cached encoders and decoders would point


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /