(_log: GenerationLog, successor: Snapshot)
| 74 | lost = [] |
| 75 | |
| 76 | def lose_commit(_log: GenerationLog, successor: Snapshot) -> bool: |
| 77 | nonlocal now |
| 78 | lost.append(successor) |
| 79 | now += 1 |
| 80 | return False |
| 81 | |
| 82 | mocker.patch.object(GenerationLog, "commit", autospec=True, side_effect=lose_commit) |
| 83 | with pytest.raises(SoftFileLockProtocolError, match="could not withdraw holder") as caught: |
nothing calls this directly
no outgoing calls
no test coverage detected