Skip to content

Commit e74a901

Browse files
committed
skip qt5 on GHA
1 parent ed035c4 commit e74a901

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_eventloop.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,10 @@ def test_cocoa_loop(kernel):
9898
loop_cocoa(kernel)
9999

100100

101-
@pytest.mark.skip(reason="reason crash on CI.")
102-
@pytest.mark.skipif(
103-
len(qt_guis_avail) == 0, reason="No viable version of PyQt or PySide installed."
104-
)
105-
def test_qt_enable_gui(kernel, capsys):
106-
gui = qt_guis_avail[0]
107-
101+
@pytest.mark.parametrize("gui", qt_guis_avail)
102+
def test_qt_enable_gui(gui, kernel, capsys):
103+
if os.getenv("GITHUB_ACTIONS", None) == "true" and gui == "qt5":
104+
pytest.skip("Qt5 and GitHub action crash CPython")
108105
enable_gui(gui, kernel)
109106

110107
# We store the `QApplication` instance in the kernel.

0 commit comments

Comments
 (0)