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

Function test_fallback_reentrant_locking

tests/test_unix_fallback.py:87–95  ·  view source on GitHub ↗
(tmp_path: Path, mocker: MockerFixture)

Source from the content-addressed store, hash-verified

85@unix_only
86@pytest.mark.filterwarnings("default::UserWarning")
87def test_fallback_reentrant_locking(tmp_path: Path, mocker: MockerFixture) -> None:
88 mocker.patch(_FLOCK_PATCH_TARGET, side_effect=_ENOSYS_SIDE_EFFECT)
89 lock = UnixFileLock(tmp_path / "test.lock")
90
91 with lock:
92 with lock:
93 assert lock.is_locked
94 assert lock.is_locked
95 assert not lock.is_locked
96
97
98@unix_only

Callers

nothing calls this directly

Calls 1

UnixFileLockClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…