[Python-checkins] cpython (3.5): regrtest: accept options after test names

victor.stinner python-checkins at python.org
Sat Sep 10 04:28:39 EDT 2016


https://hg.python.org/cpython/rev/4df2d43e995d
changeset: 103562:4df2d43e995d
branch: 3.5
parent: 103557:b23f963a7b45
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Sep 10 04:27:28 2016 -0400
summary:
 regrtest: accept options after test names
files:
 Lib/test/regrtest.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -325,7 +325,7 @@
 group.add_argument('-P', '--pgo', dest='pgo', action='store_true',
 help='enable Profile Guided Optimization training')
 
- parser.add_argument('args', nargs=argparse.REMAINDER,
+ parser.add_argument('args', nargs='*',
 help=argparse.SUPPRESS)
 
 return parser
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

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