From f79fff0ddfb1d60cc431d503153d172a2b8f03be Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Tue, 21 Jun 2022 17:58:00 +0200
Subject: [PATCH] No GUI test if not importable

---
 test/test_gui.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/test_gui.py b/test/test_gui.py
index 56c9fe7c..1e493bac 100644
--- a/test/test_gui.py
+++ b/test/test_gui.py
@@ -1,6 +1,10 @@
 import pytest
 
-import b_asic.GUI as GUI
+try:
+    import b_asic.GUI as GUI
+except ImportError:
+    pytestmark = pytest.mark.skip('Qt not setup')
+
 
 def test_start(qtbot):
     widget = GUI.MainWindow()
-- 
GitLab