From: Victor Stinner Date: Thu, 24 Mar 2016 10:55:29 +0000 (+0100) Subject: regrtest: mention in tests run sequentially or in parallel X-Git-Tag: v3.6.0a1~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b60b7237e81895b71e8763dd94946cd76bf2d16;p=thirdparty%2FPython%2Fcpython.git regrtest: mention in tests run sequentially or in parallel --- diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index de08f32d270e..c6d9ad05bc9f 100644 --- a/Lib/test/libregrtest/main.py +++ b/Lib/test/libregrtest/main.py @@ -305,6 +305,8 @@ class Regrtest: save_modules = sys.modules.keys() + print("Run tests sequentially") + previous_test = None for test_index, test in enumerate(self.tests, 1): start_time = time.monotonic() diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py index e51b10015f34..96db196f5333 100644 --- a/Lib/test/libregrtest/runtest_mp.py +++ b/Lib/test/libregrtest/runtest_mp.py @@ -154,6 +154,8 @@ def run_tests_multiprocess(regrtest): workers = [MultiprocessThread(pending, output, regrtest.ns) for i in range(regrtest.ns.use_mp)] + print("Run tests in parallel using %s child processes" + % len(workers)) for worker in workers: worker.start()