mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
regrtest: mention in tests run sequentially or in parallel
This commit is contained in:
parent
5de16e80c1
commit
2b60b7237e
2 changed files with 4 additions and 0 deletions
|
|
@ -305,6 +305,8 @@ class Regrtest:
|
||||||
|
|
||||||
save_modules = sys.modules.keys()
|
save_modules = sys.modules.keys()
|
||||||
|
|
||||||
|
print("Run tests sequentially")
|
||||||
|
|
||||||
previous_test = None
|
previous_test = None
|
||||||
for test_index, test in enumerate(self.tests, 1):
|
for test_index, test in enumerate(self.tests, 1):
|
||||||
start_time = time.monotonic()
|
start_time = time.monotonic()
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,8 @@ def run_tests_multiprocess(regrtest):
|
||||||
|
|
||||||
workers = [MultiprocessThread(pending, output, regrtest.ns)
|
workers = [MultiprocessThread(pending, output, regrtest.ns)
|
||||||
for i in range(regrtest.ns.use_mp)]
|
for i in range(regrtest.ns.use_mp)]
|
||||||
|
print("Run tests in parallel using %s child processes"
|
||||||
|
% len(workers))
|
||||||
for worker in workers:
|
for worker in workers:
|
||||||
worker.start()
|
worker.start()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue