mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-29 18:16:43 +00:00
test: raise cancellation sentinel without generator semantics
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user