MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / setUp

Method setUp

tests/cli/launcher_test.py:35–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class TestLauncherMain(unittest.IsolatedAsyncioTestCase):
35 def setUp(self):
36 if multiprocessing.get_start_method(allow_none=True) != "spawn":
37 multiprocessing.set_start_method("spawn", force=True)
38 self._orig_argv = sys.argv.copy()
39 self.config = get_template_config()
40 self.config.checkpoint_root_dir = get_checkpoint_path()
41 self.config.model.model_path = get_model_path()
42 self.config.check_and_update()
43 shutil.rmtree(self.config.checkpoint_job_dir, ignore_errors=True)
44
45 def tearDown(self):
46 sys.argv = self._orig_argv

Callers

nothing calls this directly

Calls 4

get_template_configFunction · 0.90
get_checkpoint_pathFunction · 0.90
get_model_pathFunction · 0.90
check_and_updateMethod · 0.80

Tested by

no test coverage detected