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

Function t_1

tests/test_filelock.py:279–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277 # Runs multiple threads, which acquire the same lock file with a different FileLock object. When thread group 1
278 # acquired the lock, thread group 2 must not hold their lock.
279 def t_1() -> None:
280 for _ in range(1000):
281 with lock_1:
282 assert lock_1.is_locked
283 assert not lock_2.is_locked
284
285 def t_2() -> None:
286 for _ in range(1000):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected