(lock_file: str, mode: Literal["read", "write"])
| 246 | ) |
| 247 | @pytest.mark.timeout(15) |
| 248 | def test_single_lock_reentrant(lock_file: str, mode: Literal["read", "write"]) -> None: |
| 249 | acquire = getattr(ReadWriteLock(lock_file), f"{mode}_lock") |
| 250 | |
| 251 | with acquire(): |
| 252 | with acquire(): |
| 253 | pass |
| 254 | assert not writer_gets_in(lock_file) |
| 255 | |
| 256 | assert writer_gets_in(lock_file) |
| 257 | |
| 258 | |
| 259 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected