(self)
| 33 | |
| 34 | class 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 |
nothing calls this directly
no test coverage detected