MCPcopy Index your code
hub / github.com/nodejs/node / tearDown

Method tearDown

deps/v8/tools/release/test_scripts.py:281–292  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

279 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
280
281 def tearDown(self):
282 if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]):
283 shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"])
284
285 # Clean up temps. Doesn't work automatically.
286 for name in self._tmp_files:
287 if os.path.isfile(name):
288 os.remove(name)
289 if os.path.isdir(name):
290 shutil.rmtree(name)
291
292 self._mock.AssertFinished()
293
294 def testGitMock(self):
295 self.Expect([Cmd("git --version", "git version 1.2.3"),

Callers

nothing calls this directly

Calls 3

AssertFinishedMethod · 0.80
existsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected