MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _do_cleanup

Method _do_cleanup

testing/test_tmpdir.py:278–285  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

276 assert not lock.exists()
277
278 def _do_cleanup(self, tmp_path: Path) -> None:
279 self.test_make(tmp_path)
280 cleanup_numbered_dir(
281 root=tmp_path,
282 prefix=self.PREFIX,
283 keep=2,
284 consider_lock_dead_if_created_before=0,
285 )
286
287 def test_cleanup_keep(self, tmp_path):
288 self._do_cleanup(tmp_path)

Callers 2

test_cleanup_keepMethod · 0.95

Calls 2

test_makeMethod · 0.95
cleanup_numbered_dirFunction · 0.90

Tested by

no test coverage detected