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

Function test_non_executor

tests/test_async_filelock.py:154–160  ·  view source on GitHub ↗
(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path)

Source from the content-addressed store, hash-verified

152@pytest.mark.parametrize("thread_local", [True, False])
153@pytest.mark.asyncio
154async def test_non_executor(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path) -> None:
155 lock_path = tmp_path / "a"
156 lock = lock_type(str(lock_path), thread_local=thread_local, run_in_executor=False)
157 async with lock as locked:
158 assert lock.is_locked
159 assert lock is locked
160 assert not lock.is_locked
161
162
163@pytest.mark.asyncio

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…