diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 11:14:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 11:14:10 (GMT) |
commit | 69649f21f02907da59264df8faf73849d2557f5e (patch) | |
tree | 0eee9248c7fbc4673498a8e034297f996f6fb778 /Lib/test/libregrtest/runtest_mp.py | |
parent | e985726553b4e5571f110f00e14da5a6ae5d7994 (diff) | |
download | cpython-69649f21f02907da59264df8faf73849d2557f5e.zip cpython-69649f21f02907da59264df8faf73849d2557f5e.tar.gz cpython-69649f21f02907da59264df8faf73849d2557f5e.tar.bz2 |
regrtest: display test duration in sequential mode
Only display duration if a test takes more than 30 seconds.
Diffstat (limited to 'Lib/test/libregrtest/runtest_mp.py')
-rw-r--r-- | Lib/test/libregrtest/runtest_mp.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py index 5e847a0..e51b100 100644 --- a/Lib/test/libregrtest/runtest_mp.py +++ b/Lib/test/libregrtest/runtest_mp.py @@ -13,14 +13,11 @@ except ImportError: print("Multiprocess option requires thread support") sys.exit(2) -from test.libregrtest.runtest import runtest, INTERRUPTED, CHILD_ERROR +from test.libregrtest.runtest import ( + runtest, INTERRUPTED, CHILD_ERROR, PROGRESS_MIN_TIME) from test.libregrtest.setup import setup_tests -# Minimum duration of a test to display its duration or to mention that -# the test is running in background -PROGRESS_MIN_TIME = 30.0 # seconds - # Display the running tests if nothing happened last N seconds PROGRESS_UPDATE = 30.0 # seconds |