Function
test_ro_folder
(lock_type: type[BaseFileLock], tmp_path_ro: Path)
Source from the content-addressed store, hash-verified
| 76 | reason="Cannot make a read only file (that the current user: root can't read)", |
| 77 | ) |
| 78 | def test_ro_folder(lock_type: type[BaseFileLock], tmp_path_ro: Path) -> None: |
| 79 | lock = lock_type(str(tmp_path_ro / "a")) |
| 80 | with pytest.raises(PermissionError, match="Permission denied"): |
| 81 | lock.acquire() |
| 82 | |
| 83 | |
| 84 | @pytest.fixture |
Callers
nothing calls this directly
Tested by
no test coverage detected