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

Function test_fallback_reentrant_locking

tests/test_unix_fallback.py:134–141  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

132@pytest.mark.filterwarnings("ignore:flock not supported on this filesystem:UserWarning")
133@pytest.mark.usefixtures("unsupported_flock")
134def test_fallback_reentrant_locking(tmp_path: Path) -> None: # pragma: needs fcntl
135 lock = UnixFileLock(tmp_path / "test.lock")
136
137 with lock:
138 with lock:
139 assert lock.is_locked
140 assert lock.is_locked
141 assert not lock.is_locked
142
143
144@NEEDS_FCNTL

Callers

nothing calls this directly

Calls 1

UnixFileLockClass · 0.90

Tested by

no test coverage detected