(self, script, args=None, timeout=20)
| 71 | shutil.rmtree(os.path.join("train_log", script)) |
| 72 | |
| 73 | def assertSurvive(self, script, args=None, timeout=20): # noqa |
| 74 | cmd = "python{} {}".format(sys.version_info.major, script) |
| 75 | if args: |
| 76 | cmd += " " + " ".join(args) |
| 77 | PythonScript(cmd, timeout=timeout).execute() |
| 78 | |
| 79 | def setUp(self): |
| 80 | TestPythonScript.clear_trainlog(self.script) |