Just disable the wizard test for macOS

This commit is contained in:
Veronica K. B. Olsen
2020-10-01 23:17:43 +02:00
parent a460c3d682
commit 1bf5c2de91
+5
View File
@@ -6,6 +6,7 @@ import nw
import pytest import pytest
import json import json
import os import os
import sys
from shutil import copyfile from shutil import copyfile
from nwtools import cmpFiles, getGuiItem from nwtools import cmpFiles, getGuiItem
@@ -718,6 +719,10 @@ def testMergeSplitTools(qtbot, monkeypatch, yesToAll, nwTempGUI, nwLipsum, nwRef
@pytest.mark.gui @pytest.mark.gui
def testNewProjectWizard(qtbot, monkeypatch, yesToAll, nwMinimal, nwTemp): def testNewProjectWizard(qtbot, monkeypatch, yesToAll, nwMinimal, nwTemp):
if sys.platform.startswith("darwin"):
# Disable for macOS because the test segfaults on QWizard.show()
return
from PyQt5.QtWidgets import QWizard from PyQt5.QtWidgets import QWizard
from nw.gui.projwizard import ( from nw.gui.projwizard import (
ProjWizardIntroPage, ProjWizardFolderPage, ProjWizardPopulatePage, ProjWizardIntroPage, ProjWizardFolderPage, ProjWizardPopulatePage,