(self, tmp_path)
| 499 | assert dir_num == 0 |
| 500 | |
| 501 | def test_cleanup_locked(self, tmp_path): |
| 502 | p = make_numbered_dir(root=tmp_path, prefix=self.PREFIX) |
| 503 | |
| 504 | create_cleanup_lock(p) |
| 505 | |
| 506 | assert not pathlib.ensure_deletable( |
| 507 | p, consider_lock_dead_if_created_before=p.stat().st_mtime - 1 |
| 508 | ) |
| 509 | assert pathlib.ensure_deletable( |
| 510 | p, consider_lock_dead_if_created_before=p.stat().st_mtime + 1 |
| 511 | ) |
| 512 | |
| 513 | def test_cleanup_ignores_symlink(self, tmp_path): |
| 514 | the_symlink = tmp_path / (self.PREFIX + class="st">"current") |
nothing calls this directly
no test coverage detected