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

Function test_non_executor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected