MCPcopy Create free account
hub / github.com/tox-dev/filelock / test_ro_folder

Function test_ro_folder

tests/test_filelock.py:78–81  ·  view source on GitHub ↗
(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)
78def 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

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected