(tmp_path: Path, mocker: MockerFixture)
| 85 | @unix_only |
| 86 | @pytest.mark.filterwarnings("default::UserWarning") |
| 87 | def test_fallback_reentrant_locking(tmp_path: Path, mocker: MockerFixture) -> None: |
| 88 | mocker.patch(_FLOCK_PATCH_TARGET, side_effect=_ENOSYS_SIDE_EFFECT) |
| 89 | lock = UnixFileLock(tmp_path / "test.lock") |
| 90 | |
| 91 | with lock: |
| 92 | with lock: |
| 93 | assert lock.is_locked |
| 94 | assert lock.is_locked |
| 95 | assert not lock.is_locked |
| 96 | |
| 97 | |
| 98 | @unix_only |
nothing calls this directly
no test coverage detected
searching dependent graphs…