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

Method test_cleanup_locked

testing/test_tmpdir.py:292–302  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

290 print(a, b)
291
292 def test_cleanup_locked(self, tmp_path):
293 p = make_numbered_dir(root=tmp_path, prefix=self.PREFIX)
294
295 create_cleanup_lock(p)
296
297 assert not pathlib.ensure_deletable(
298 p, consider_lock_dead_if_created_before=p.stat().st_mtime - 1
299 )
300 assert pathlib.ensure_deletable(
301 p, consider_lock_dead_if_created_before=p.stat().st_mtime + 1
302 )
303
304 def test_cleanup_ignores_symlink(self, tmp_path):
305 the_symlink = tmp_path / (self.PREFIX + "current")

Callers

nothing calls this directly

Calls 2

make_numbered_dirFunction · 0.90
create_cleanup_lockFunction · 0.90

Tested by

no test coverage detected