diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-10 03:04:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-10 03:04:26 (GMT) |
commit | 0eab2427b149cd46e0dee3efbb6b2cfca2a4f723 (patch) | |
tree | 61d639554eeb6741d9e5ace97f8d39fc2f99d727 /Lib/test/libregrtest/runtest_mp.py | |
parent | db5bfe91f822bb06b4c8fe7c58e649694c854bf2 (diff) | |
download | cpython-0eab2427b149cd46e0dee3efbb6b2cfca2a4f723.zip cpython-0eab2427b149cd46e0dee3efbb6b2cfca2a4f723.tar.gz cpython-0eab2427b149cd46e0dee3efbb6b2cfca2a4f723.tar.bz2 |
gh-109162: libregrtest: add Logger class (#109212)
* Add Logger class in a new logger.py file.
* Move Regrtest attributes to Logger:
* start_time
* test_count_text
* test_count_width
* win_load_tracker
* Move Regrtest method to Logger:
* log()
* getloadavg(): rename to get_load_avg()
* set_tests()
* Add methods to the Logger class:
* start_load_tracker()
* stop_load_tracker()
Diffstat (limited to 'Lib/test/libregrtest/runtest_mp.py')
-rw-r--r-- | Lib/test/libregrtest/runtest_mp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py index 179b610..c4cffff 100644 --- a/Lib/test/libregrtest/runtest_mp.py +++ b/Lib/test/libregrtest/runtest_mp.py @@ -433,7 +433,7 @@ def get_running(workers: list[WorkerThread]) -> list[str]: class RunWorkers: def __init__(self, regrtest: Regrtest, runtests: RunTests, num_workers: int) -> None: self.results: TestResults = regrtest.results - self.log = regrtest.log + self.log = regrtest.logger.log self.display_progress = regrtest.display_progress self.num_workers = num_workers self.runtests = runtests |