test: raise cancellation sentinel without generator semantics

This commit is contained in:
martino
2026-09-28 16:17:49 +02:00
parent 3e7ebc4be0
commit e071fdf4a1
@@ -215,7 +215,7 @@ die() { printf 'error:%%s\\n' "$1"; exit 1; }
'GUIDA RCLONE', 'EDITOR COLLABORATIVO')):
with self.subTest(values=values):
cache['_cache'] = values
ui = SimpleNamespace(message=Mock(), ask=lambda *_args, **_kw: (_ for _ in ()).throw(StopIteration()))
ui = SimpleNamespace(message=Mock(), ask=Mock(side_effect=StopIteration))
rclone = extract_function(INSTALLER, 'build_rclone_mount_deployment',
TerminalUI=object, DialogUI=object, translate=lookup,
re=re, InstallError=ValueError,