MCPcopy
hub / github.com/sphinx-doc/sphinx / cleanup

Method cleanup

sphinx/testing/util.py:222–229  ·  view source on GitHub ↗
(self, doctrees: bool = False)

Source from the content-addressed store, hash-verified

220 return self._warning
221
222 def cleanup(self, doctrees: bool = False) -> None:
223 sys.path[:] = self._saved_path
224 _clean_up_global_state()
225 try:
226 self.docutils_conf_path.unlink(missing_ok=True)
227 except OSError as exc:
228 if exc.errno != 30: # Ignore "read-only file system" errors
229 raise
230
231 def __repr__(self) -> str:
232 return f'<{self.__class__.__name__} buildername={self._builder_name!r}>'

Callers 8

__init__Method · 0.95
make_appFunction · 0.95
_setup_moduleFunction · 0.95
test_instantiationFunction · 0.95
test_load_mappings_cacheFunction · 0.95

Calls 1

_clean_up_global_stateFunction · 0.85

Tested by 6

_setup_moduleFunction · 0.76
test_instantiationFunction · 0.76
test_load_mappings_cacheFunction · 0.76