Merge branch 'codex/review-residual-release' into codex/runtime-lifecycle-safety
# Conflicts: # src/cbb_refresh_verify/residual_sessions.py
This commit is contained in:
commit
b1c36e3ca6
8 files changed
+466
-51
No files matched your search
@@ -334,11 +334,12 @@ def test_partial_desktop_enumeration_never_offers_normal_close(monkeypatch):
|
||||
def failed(*_): raise OSError('desktop disappeared')
|
||||
monkeypatch.setattr(win32gui, 'EnumWindows', failed)
|
||||
monkeypatch.setattr(win32service, 'GetProcessWindowStation', lambda: SimpleNamespace(EnumDesktops=lambda: []))
|
||||
windows = _process_windows({10})[10]
|
||||
assert any(w['class'] == 'UNCONFIRMED' for w in windows)
|
||||
snapshot = _process_windows({10})
|
||||
windows = snapshot[10]
|
||||
assert snapshot.incomplete[10]
|
||||
windows.append({'hwnd': 100, 'class': 'Afx:main', 'title': 'Design - Expedition PCB',
|
||||
'children': [], 'enabled': True})
|
||||
assert close_target('ExpeditionPCB.exe', windows)[0] is None
|
||||
assert close_target('ExpeditionPCB.exe', windows, incomplete=snapshot.incomplete[10])[0] is None
|
||||
|
||||
|
||||
@pytest.mark.parametrize('choice', [6, 7, 2])
|
||||
|
||||
Reference in new issue
Block a user