MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / assertSurvive

Method assertSurvive

tests/case_script.py:73–77  ·  view source on GitHub ↗
(self, script, args=None, timeout=20)

Source from the content-addressed store, hash-verified

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)

Callers 4

testMethod · 0.80
testMethod · 0.80
testMethod · 0.80
testMethod · 0.80

Calls 4

PythonScriptClass · 0.85
formatMethod · 0.80
joinMethod · 0.80
executeMethod · 0.80

Tested by 4

testMethod · 0.64
testMethod · 0.64
testMethod · 0.64
testMethod · 0.64