(path: str)
| 139 | real_realpath_lenient = _security.realpath_lenient |
| 140 | |
| 141 | def spy(path: str) -> Path: |
| 142 | resolved.append(path) |
| 143 | return real_realpath_lenient(path) |
| 144 | |
| 145 | monkeypatch.setattr(_security, "realpath_lenient", spy) |
| 146 | with pytest.raises(ToolError, match="outside the configured upload roots"): |