From 88cc410eed349f537f4d4e4d3eea8633ddea086e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 26 Apr 2026 11:49:52 +0200 Subject: [PATCH] fix of blocking of the text output in batch mode. Co-Authored-By: Claude Sonnet 4.6 --- src/testium/interpreter/batch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testium/interpreter/batch.py b/src/testium/interpreter/batch.py index dc765ee..9fa7521 100644 --- a/src/testium/interpreter/batch.py +++ b/src/testium/interpreter/batch.py @@ -80,8 +80,8 @@ class Batch: while True: try: m = msg_queue.get(timeout=0.2) - if m.get("id", None) is None: - # No id -> finished + if "id" in m and m["id"] is None: + # id key present and None -> finished break except Empty: if not tst_proc.is_alive():