Mercurial > public > mercurial-scm > hg-stable
diff tests/test-run-tests.t @ 35198:b4b0aed7bfaf
run-tests: convert to argparse
optparse has been deprecated since Python 3.2. Best to get on the new
boat before the old one sinks.
It looks like argparse formats its usage string differently than
optparse. Meh.
Differential Revision: https://phab.mercurial-scm.org/D1474
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 20 Nov 2017 20:41:43 -0800 |
parents | 6d5718e39657 |
children | 073843b5e353 |
line wrap: on
line diff
--- a/tests/test-run-tests.t Fri Dec 01 15:21:05 2017 -0600 +++ b/tests/test-run-tests.t Mon Nov 20 20:41:43 2017 -0800 @@ -32,8 +32,7 @@ #if execbit $ touch hg $ run-tests.py --with-hg=./hg - Usage: run-tests.py [options] [tests] - + usage: run-tests.py [options] [tests] run-tests.py: error: --with-hg must specify an executable hg script [2] $ rm hg @@ -1383,8 +1382,7 @@ [1] $ rt --bisect-repo=../test-bisect test-bisect-dependent.t - Usage: run-tests.py [options] [tests] - + usage: run-tests.py [options] [tests] run-tests.py: error: --bisect-repo cannot be used without --known-good-rev [2]