Skip to content

Commit

Permalink
Skip all uncertainty wizard tests on osx (#724)
Browse files Browse the repository at this point in the history
These tests sometimes cause a segmentation fault on osx, which crashes
the tests

Co-authored-by: haasad <[email protected]>
  • Loading branch information
haasad and haasad authored Feb 18, 2022
1 parent 85abdd3 commit f20a3ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_uncertainty_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Mess around with the uncertainty wizard.
"""


@pytest.mark.skipif(sys.platform=='darwin', reason="tests segfaults on osx")
def test_wizard_fail(qtbot):
"""Can't create a wizard if no uncertainty interface exists."""
mystery_box = ["Hello", "My", "Name", "Is", "Error"] # Type is list.
Expand Down Expand Up @@ -51,6 +51,7 @@ def test_uncertainty_wizard_simple(qtbot, bw2test, capsys):
assert not wizard.using_pedigree


@pytest.mark.skipif(sys.platform=='darwin', reason="tests segfaults on osx")
def test_graph_rebuild(qtbot, bw2test):
"""Test that the graph is correctly built and rebuilt, ensure
that the 'finish' button is enabled and disabled at the correct
Expand Down Expand Up @@ -85,6 +86,7 @@ def test_graph_rebuild(qtbot, bw2test):
assert wizard.button(QWizard.FinishButton).isEnabled()


@pytest.mark.skipif(sys.platform=='darwin', reason="tests segfaults on osx")
def test_update_uncertainty(qtbot, ab_app):
"""Using the signal/controller setup, update the uncertainty of a parameter"""
param = ProjectParameter.create(name="uc1", amount=3)
Expand All @@ -107,6 +109,7 @@ def test_update_uncertainty(qtbot, ab_app):
assert "loc" in param.data and param.data["loc"] == 3


@pytest.mark.skipif(sys.platform=='darwin', reason="tests segfaults on osx")
def test_update_alter_mean(qtbot, monkeypatch, ab_app):
param = ProjectParameter.create(name="uc2", amount=1)
wizard = UncertaintyWizard(param, None)
Expand Down

0 comments on commit f20a3ed

Please sign in to comment.