From 9b37ba4c1dc634fa0da5b15a32b4dce723baca95 Mon Sep 17 00:00:00 2001 From: Zarvox Date: Thu, 30 Apr 2026 10:16:03 -0500 Subject: [PATCH] Gate tree-selection bookkeeping test to macOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The macOS TreeListCtrl shim is the only path that maintains the bookkeeping this test exercises — on Windows/Linux ManagedTreeCtrl is a wx.TreeCtrl whose root becomes invalid after DeleteAllItems and whose stale TreeItemIds give undefined results, so the test fails with a wxAssertionError. Skip it on non-darwin like the existing event-binder test. Co-Authored-By: Claude Opus 4.7 --- clients/desktop/tests/test_tree_selection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/desktop/tests/test_tree_selection.py b/clients/desktop/tests/test_tree_selection.py index 28b62bc6..0dff458f 100644 --- a/clients/desktop/tests/test_tree_selection.py +++ b/clients/desktop/tests/test_tree_selection.py @@ -69,6 +69,7 @@ def test_managed_tree_ctrl_select_after_delete_prefers_configured_neighbor(wx_ap frame.Destroy() +@pytest.mark.skipif(sys.platform != "darwin", reason="macOS TreeListCtrl shim only") def test_managed_tree_ctrl_delete_all_items_resets_bookkeeping(wx_app): frame = wx.Frame(None) panel = wx.Panel(frame)