(tmp_path: Path, mocker: MockerFixture)
| 23 | |
| 24 | @unix_only |
| 25 | def test_fallback_emits_warning(tmp_path: Path, mocker: MockerFixture) -> None: |
| 26 | mocker.patch(_FLOCK_PATCH_TARGET, side_effect=_ENOSYS_SIDE_EFFECT) |
| 27 | lock = UnixFileLock(tmp_path / "test.lock") |
| 28 | |
| 29 | with pytest.warns(UserWarning, match="flock not supported on this filesystem, falling back to SoftFileLock"): |
| 30 | lock.acquire() |
| 31 | lock.release() |
| 32 | |
| 33 | |
| 34 | @unix_only |
nothing calls this directly
no test coverage detected
searching dependent graphs…