MCPcopy Create free account
hub / github.com/pytorch/executorch / tearDown

Method tearDown

tools/cmake/common/__init__.py:73–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71class CMakeTestCase(unittest.TestCase):
72
73 def tearDown(self) -> None:
74 super().tearDown()
75
76 if self.workspace and not _keep_workspace():
77 shutil.rmtree(self.workspace)
78 self.assertFalse(os.path.exists(self.workspace))
79
80 def create_workspace(self, tree: Dict[Any, Any]) -> None:
81 self.workspace = tempfile.mkdtemp()

Callers

nothing calls this directly

Calls 1

_keep_workspaceFunction · 0.85

Tested by

no test coverage detected