[Python-checkins] cpython: Issue #11727: set regrtest default timeout to 15 minutes

victor.stinner python-checkins at python.org
Fri Apr 1 16:00:11 CEST 2011


http://hg.python.org/cpython/rev/15f6fe139181
changeset:   69104:15f6fe139181
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Fri Apr 01 15:59:59 2011 +0200
summary:
  Issue #11727: set regrtest default timeout to 15 minutes

files:
  Lib/test/regrtest.py |  5 +++--
  Misc/NEWS            |  4 +++-
  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
@@ -22,7 +22,8 @@
 -h/--help       -- print this text and exit
 --timeout TIMEOUT
                 -- dump the traceback and exit if a test takes more
-                   than TIMEOUT seconds
+                   than TIMEOUT seconds (default: 15 minutes); disable
+                   the timeout if TIMEOUT is zero
 
 Verbosity
 
@@ -239,7 +240,7 @@
          findleaks=False, use_resources=None, trace=False, coverdir='coverage',
          runleaks=False, huntrleaks=False, verbose2=False, print_slow=False,
          random_seed=None, use_mp=None, verbose3=False, forever=False,
-         header=False, timeout=None):
+         header=False, timeout=15*60):
     """Execute a test suite.
 
     This also parses command-line options and modifies its behavior
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -361,7 +361,9 @@
 Tests
 -----
 
-- Issue #11727: add --timeout option to regrtest (disabled by default).
+- Issue #11727: If a test takes more than 15 minutes, regrtest dumps the
+  traceback of all threads and exits. Use --timeout option to change the
+  default timeout or to disable it.
 
 - Issue #11653: fix -W with -j in regrtest.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list