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

Function test_open_mode

tests/core/test_settings.py:51–52  ·  view source on GitHub ↗
(lock_type: type[BaseFileLock], mode: int, expected: int, tmp_path: Path)

Source from the content-addressed store, hash-verified

49 ],
50)
51def test_open_mode(lock_type: type[BaseFileLock], mode: int, expected: int, tmp_path: Path) -> None:
52 assert lock_type(tmp_path / "a.lock", mode=mode)._open_mode() == expected
53
54
55@pytest.mark.skipif(sys.platform == "win32", reason="Windows does not apply umask to file permissions")

Callers

nothing calls this directly

Calls 2

lock_typeFunction · 0.85
_open_modeMethod · 0.80

Tested by

no test coverage detected