(lock_file: str, first: str, second: str)
| 297 | ], |
| 298 | ) |
| 299 | def test_sequential_mode_switch(lock_file: str, first: str, second: str) -> None: |
| 300 | lock = ReadWriteLock(lock_file, is_singleton=False) |
| 301 | with lock.read_lock() if first == "read" else lock.write_lock(): |
| 302 | pass |
| 303 | with lock.read_lock() if second == "read" else lock.write_lock(): |
| 304 | pass |
| 305 | |
| 306 | |
| 307 | def test_non_blocking_read_fails_when_write_held(lock_file: str) -> None: |
nothing calls this directly
no test coverage detected