(lock_file: str, first: str, second: str)
| 197 | ], |
| 198 | ) |
| 199 | def test_sequential_mode_switch(lock_file: str, first: str, second: str) -> None: |
| 200 | lock = ReadWriteLock(lock_file, is_singleton=False) |
| 201 | with getattr(lock, f"{first}_lock")(): |
| 202 | assert not writer_gets_in(lock_file) |
| 203 | with getattr(lock, f"{second}_lock")(): |
| 204 | assert not writer_gets_in(lock_file) |
| 205 | |
| 206 | |
| 207 | def test_non_blocking_read_fails_when_write_held(lock_file: str) -> None: |
nothing calls this directly
no test coverage detected