From c7a070e998fea9aefea65bb8ffe6b03e00919472 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 10 Sep 2016 04:27:28 -0400 Subject: [PATCH] regrtest: accept options after test names --- Lib/test/regrtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index ba8a780fc9e..8509f55043b 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -325,7 +325,7 @@ def _create_parser(): 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