Disable flaky test on Windows

This commit is contained in:
Veronica Berglyd Olsen
2025-01-26 18:26:45 +01:00
parent 6c4d8f3ede
commit 8c1070b318
+3
View File
@@ -20,6 +20,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
""" """
from __future__ import annotations from __future__ import annotations
import sys
from pathlib import Path from pathlib import Path
import pytest import pytest
@@ -144,6 +146,7 @@ def testGuiTheme_Theme(qtbot, monkeypatch, nwGUI, tstPaths):
# Load Default Theme # Load Default Theme
# ================== # ==================
if sys.platform != "win32":
# Set a mock colour for the window background # Set a mock colour for the window background
mainTheme._guiPalette.color(QPalette.ColorRole.Window).setRgb(0, 0, 0, 0) mainTheme._guiPalette.color(QPalette.ColorRole.Window).setRgb(0, 0, 0, 0)