aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gui.py2
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