(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path)
| 149 | @pytest.mark.parametrize("thread_local", [True, False]) |
| 150 | @pytest.mark.asyncio |
| 151 | async 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 |
nothing calls this directly
no outgoing calls
no test coverage detected