[Python-checkins] cpython (3.2): Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize.
chris.jerdonek
python-checkins at python.org
Fri Dec 28 03:34:41 CET 2012
http://hg.python.org/cpython/rev/b2cd12690a51
changeset: 81118:b2cd12690a51
branch: 3.2
parent: 81114:f348a3110a85
user: Chris Jerdonek <chris.jerdonek at gmail.com>
date: Thu Dec 27 18:16:32 2012 -0800
summary:
Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize.
files:
Lib/test/regrtest.py | 6 +++---
Misc/NEWS | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -33,7 +33,7 @@
Selecting tests
--r/--random -- randomize test execution order (see below)
+-r/--randomize -- randomize test execution order (see below)
--randseed -- pass a random seed to reproduce a previous random run
-f/--fromfile -- read names of tests to run from a file (see below)
-x/--exclude -- arguments are tests to *exclude*
@@ -274,11 +274,11 @@
try:
opts, args = getopt.getopt(sys.argv[1:], 'hvqxsoS:rf:lu:t:TD:NLR:FdwWM:nj:Gm:',
['help', 'verbose', 'verbose2', 'verbose3', 'quiet',
- 'exclude', 'single', 'slow', 'random', 'fromfile', 'findleaks',
+ 'exclude', 'single', 'slow', 'randomize', 'fromfile=', 'findleaks',
'use=', 'threshold=', 'coverdir=', 'nocoverdir',
'runleaks', 'huntrleaks=', 'memlimit=', 'randseed=',
'multiprocess=', 'coverage', 'slaveargs=', 'forever', 'debug',
- 'start=', 'nowindows', 'header', 'failfast', 'match'])
+ 'start=', 'nowindows', 'header', 'failfast', 'match='])
except getopt.error as msg:
usage(msg)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -723,6 +723,9 @@
Tests
-----
+- Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize
+ options.
+
- Issue #16664: Add regression tests for glob's behaviour concerning entries
starting with a ".". Patch by Sebastian Kreft.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list