MCPcopy
hub / github.com/pytest-dev/pytest / _do_cleanup

Method _do_cleanup

testing/test_tmpdir.py:482–489  ·  view source on GitHub ↗
(self, tmp_path: Path, keep: int = 2)

Source from the content-addressed store, hash-verified

480 assert not lock.exists()
481
482 def _do_cleanup(self, tmp_path: Path, keep: int = 2) -> None:
483 self.test_make(tmp_path)
484 cleanup_numbered_dir(
485 root=tmp_path,
486 prefix=self.PREFIX,
487 keep=keep,
488 consider_lock_dead_if_created_before=0,
489 )
490
491 def test_cleanup_keep(self, tmp_path):
492 self._do_cleanup(tmp_path)

Callers 3

test_cleanup_keepMethod · 0.95
test_cleanup_keep_0Method · 0.95

Calls 2

test_makeMethod · 0.95
cleanup_numbered_dirFunction · 0.90

Tested by

no test coverage detected