From a9678dd9f2a7d09a4226b613a03f52b558dd8e55 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 21 Jan 2019 23:41:07 +0800 Subject: [PATCH] test_frontends: always skip GUI programs The "import PyQt5" hack breaks on nix/hydra. --- artiq/test/test_frontends.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/artiq/test/test_frontends.py b/artiq/test/test_frontends.py index adb209e54..844812c7a 100644 --- a/artiq/test/test_frontends.py +++ b/artiq/test/test_frontends.py @@ -7,6 +7,7 @@ import unittest class TestFrontends(unittest.TestCase): def test_help(self): """Test --help as a simple smoke test against catastrophic breakage.""" + # Skip tests for GUI programs on headless CI environments. commands = { "aqctl": [ "corelog", "korad_ka3005p", "lda", "novatech409b", @@ -19,13 +20,6 @@ class TestFrontends(unittest.TestCase): ] } - # Skip tests for GUI programs on headless CI environments. - try: - from PyQt5 import QtGui, QtWidgets - commands["artiq"] += ["browser", "dashboard"] - except ImportError: - pass - for module in (prefix + "_" + name for prefix, names in commands.items() for name in names):