MCPcopy
hub / github.com/httpie/cli / cleanup

Method cleanup

tests/utils/__init__.py:169–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 self._delete_config_dir = True
168
169 def cleanup(self):
170 self.devnull.close()
171 self.stdout.close()
172 self.stderr.close()
173 warnings.resetwarnings()
174 if self._delete_config_dir:
175 assert self._temp_dir in self.config_dir.parents
176 from shutil import rmtree
177 rmtree(self.config_dir, ignore_errors=True)
178
179 def __del__(self):
180 # noinspection PyBroadException

Callers 3

__del__Method · 0.95
mock_envFunction · 0.95
httpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected