summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 10:55:29 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 10:55:29 (GMT)
commit2b60b7237e81895b71e8763dd94946cd76bf2d16 (patch)
treecdd77624c5d1a5f8c0e31213d42d3b6bbe07de87
parent5de16e80c14c7698992da8b08ae169e4be1d2ca3 (diff)
downloadcpython-2b60b7237e81895b71e8763dd94946cd76bf2d16.zip
cpython-2b60b7237e81895b71e8763dd94946cd76bf2d16.tar.gz
cpython-2b60b7237e81895b71e8763dd94946cd76bf2d16.tar.bz2
regrtest: mention in tests run sequentially or in parallel
-rw-r--r--Lib/test/libregrtest/main.py2
-rw-r--r--Lib/test/libregrtest/runtest_mp.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index de08f32..c6d9ad0 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 e51b100..96db196 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()