(tmp_path: Path, mocker: MockerFixture)
| 606 | |
| 607 | |
| 608 | def test_soft_errors(tmp_path: Path, mocker: MockerFixture) -> None: |
| 609 | mocker.patch("os.open", side_effect=OSError(ENOSYS, "mock error")) |
| 610 | with pytest.raises(OSError, match="mock error"): |
| 611 | SoftFileLock(tmp_path / "a.lock").acquire() |
| 612 | |
| 613 | |
| 614 | def _check_file_read_write(txt_file: Path) -> None: |
nothing calls this directly
no test coverage detected