From cfebad6bd919caf703d1c3b83d28f59ec8e5d582 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 20:41:57 +0200 Subject: tests: always run the GUI tests offscreen setdefault kept a QT_QPA_PLATFORM already set by the desktop session (wayland;xcb here), so the tests drew windows and modal dialogs on the real display. Force offscreen. Co-Authored-By: Claude Opus 5.5 --- tests/test_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_gui.py') diff --git a/tests/test_gui.py b/tests/test_gui.py index 5b233fb..b7110f0 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -17,7 +17,7 @@ """Run: python3 -m unittest discover -s tests (headless, no VM needed)""" import os -os.environ.setdefault("QT_QPA_PLATFORM", "offscreen") +os.environ["QT_QPA_PLATFORM"] = "offscreen" # never the real display, even if the session sets one import importlib.machinery # noqa: E402 import importlib.util # noqa: E402 -- cgit v1.2.3