(lock_file: str)
| 212 | |
| 213 | @pytest.mark.asyncio |
| 214 | async def test_custom_executor(lock_file: str) -> None: |
| 215 | executor = ThreadPoolExecutor(max_workers=1) |
| 216 | lock = AsyncReadWriteLock(lock_file, is_singleton=False, executor=executor) |
| 217 | async with lock.read_lock(): |
| 218 | assert lock._lock._current_mode == "read" |
| 219 | assert lock._lock._lock_level == 0 |
| 220 | executor.shutdown(wait=False) |
| 221 | |
| 222 | |
| 223 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…