diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 22:49:33 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 22:49:33 (GMT) |
commit | 09db87b63366b4a02b53b4e5bf51149f8153ff35 (patch) | |
tree | 63ad27dbfa6e08c9df7d4303423a49a45f2bb30b /Lib | |
parent | 31b89599e92b8a98de3402199f786fda6fb33a8d (diff) | |
parent | f664345981520322e1bb233b5a639d4377990081 (diff) | |
download | cpython-09db87b63366b4a02b53b4e5bf51149f8153ff35.zip cpython-09db87b63366b4a02b53b4e5bf51149f8153ff35.tar.gz cpython-09db87b63366b4a02b53b4e5bf51149f8153ff35.tar.bz2 |
Merge
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9a83fbe..0dcd550 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -24,6 +24,7 @@ Options: -- dump the traceback and exit if a test takes more than TIMEOUT seconds (default: 30 minutes); disable the timeout if TIMEOUT is zero +--wait -- wait for user input, e.g., allow a debugger to be attached Verbosity @@ -279,7 +280,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, 'use=', 'threshold=', 'trace', 'coverdir=', 'nocoverdir', 'runleaks', 'huntrleaks=', 'memlimit=', 'randseed=', 'multiprocess=', 'coverage', 'slaveargs=', 'forever', 'debug', - 'start=', 'nowindows', 'header', 'testdir=', 'timeout=']) + 'start=', 'nowindows', 'header', 'testdir=', 'timeout=', 'wait']) except getopt.error as msg: usage(msg) @@ -419,6 +420,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, "faulthandler.dump_tracebacks_later", file=sys.stderr) sys.exit(1) timeout = float(a) + elif o == '--wait': + input("Press any key to continue...") else: print(("No handler for option {}. Please report this as a bug " "at http://bugs.python.org.").format(o), file=sys.stderr) |