(
tmp_path: Path, lock_type: type[ReadWriteLock | SoftReadWriteLock]
)
| 204 | |
| 205 | @pytest.fixture |
| 206 | def timeout_locks( |
| 207 | tmp_path: Path, lock_type: type[ReadWriteLock | SoftReadWriteLock] |
| 208 | ) -> Generator[tuple[ReadWriteLock | SoftReadWriteLock, ReadWriteLock | SoftReadWriteLock]]: |
| 209 | with ( |
| 210 | closing(lock_type(tmp_path / "a", is_singleton=False)) as holder, |
| 211 | closing(lock_type(tmp_path / "a", is_singleton=False)) as contender, |
| 212 | ): |
| 213 | yield holder, contender |
nothing calls this directly
no test coverage detected