diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-19 20:41:57 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-19 20:41:57 +0200 |
| commit | cfebad6bd919caf703d1c3b83d28f59ec8e5d582 (patch) | |
| tree | 5bde962b45754940fe5bef88a9e04219f1652864 /tests/test_gui.py | |
| parent | f4300bc6b1cad806b3ed2600d85761ddc9b9f9c9 (diff) | |
| download | sb-builder-cfebad6bd919caf703d1c3b83d28f59ec8e5d582.tar.gz sb-builder-cfebad6bd919caf703d1c3b83d28f59ec8e5d582.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_gui.py')
| -rw-r--r-- | tests/test_gui.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
