From de143b6cc3767d4f27be01f4b7d8115388cdc481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 24 Apr 2026 10:06:55 +0200 Subject: [PATCH] Fix EOFError crash when dialog subprocess exits without sending a result Co-Authored-By: Claude Sonnet 4.6 --- src/testium/interpreter/test_items/test_item_dialog_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testium/interpreter/test_items/test_item_dialog_base.py b/src/testium/interpreter/test_items/test_item_dialog_base.py index f6056b4..be1c7ea 100644 --- a/src/testium/interpreter/test_items/test_item_dialog_base.py +++ b/src/testium/interpreter/test_items/test_item_dialog_base.py @@ -40,7 +40,10 @@ class TestItemDialogBase(TestItem): result = None while p.is_alive() and not self._is_stopped: if parent_conn.poll(0.5): - result = parent_conn.recv() + try: + result = parent_conn.recv() + except EOFError: + pass break self._cleanup_process(p) return result