mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
gh-109162: libregrtest: remove WorkerJob class (#109204)
* Add attributes to Regrtest and RunTests: * gc_threshold * memory_limit * python_cmd * use_resources * Remove WorkerJob class. Add as_json() and from_json() methods to RunTests. A worker process now only uses RunTests for all parameters. * Add tests on support.set_memlimit() in test_support. Create _parse_memlimit() and also adds tests on it. * Remove 'ns' parameter from runtest.py.
This commit is contained in:
parent
24fa8f2046
commit
0c0f254230
7 changed files with 125 additions and 87 deletions
|
|
@ -177,6 +177,8 @@ class Namespace(argparse.Namespace):
|
|||
self.worker_json = None
|
||||
self.start = None
|
||||
self.timeout = None
|
||||
self.memlimit = None
|
||||
self.threshold = None
|
||||
|
||||
super().__init__(**kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue