def setUpClass(cls): cls.build_root = mkdtemp(suffix='_BUILD_ROOT') set_buildroot(cls.build_root) cls._cwd = os.getcwd() os.chdir(cls.build_root) Target._clear_all_addresses()
def tearDown(self): Target._clear_all_addresses()