Skip to content

Commit

Permalink
Skip tests that cause segfault on mac. (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgig committed May 12, 2020
1 parent 6e2afd1 commit 9475ede
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions qutip/tests/test_brtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import numpy as np
import scipy.linalg
import pytest
import platform
import qutip
from qutip.cy.brtools_checks import (
_test_zheevr, _test_diag_liou_mult, _test_dense_to_eigbasis,
Expand All @@ -42,6 +43,7 @@
)


@pytest.mark.skipif("platform.system() == 'Darwin'")
def test_zheevr():
"""
zheevr: store eigenvalues in the passed array, and return the eigenvectors
Expand Down
4 changes: 3 additions & 1 deletion qutip/tests/test_cavityqed.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
from qutip.solver import Options
from qutip.states import basis
from qutip.tensor import tensor

import platform
import pytest

class Testcqed:
"""
Expand Down Expand Up @@ -132,6 +133,7 @@ def test_analytical_evo(self):
fidelity(result, rho1), 1., rtol=1e-2,
err_msg="Analytical run_state fails in DispersiveCavityQED")

@pytest.mark.skipif("platform.system() == 'Darwin'")
def test_numerical_evo(self):
"""
Test of run_state with qutip solver
Expand Down
2 changes: 2 additions & 0 deletions qutip/tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

import platform
import unittest
import pytest

try:
import cvxpy
Expand Down Expand Up @@ -295,6 +296,7 @@ def test_hellinger_inequality():
assert_(hellinger >= bures)


@pytest.mark.skipif("platform.system() == 'Darwin'")
def test_hellinger_monotonicity():
"""
Metrics: Hellinger dist.: check monotonicity
Expand Down

0 comments on commit 9475ede

Please sign in to comment.