(tmp_path: Path)
| 132 | @pytest.mark.filterwarnings("ignore:flock not supported on this filesystem:UserWarning") |
| 133 | @pytest.mark.usefixtures("unsupported_flock") |
| 134 | def test_fallback_reentrant_locking(tmp_path: Path) -> None: # pragma: needs fcntl |
| 135 | lock = UnixFileLock(tmp_path / "test.lock") |
| 136 | |
| 137 | with lock: |
| 138 | with lock: |
| 139 | assert lock.is_locked |
| 140 | assert lock.is_locked |
| 141 | assert not lock.is_locked |
| 142 | |
| 143 | |
| 144 | @NEEDS_FCNTL |
nothing calls this directly
no test coverage detected