Skip to content

Commit

Permalink
skip tests where mpmath is required
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuarezr committed Nov 20, 2023
1 parent 7f75616 commit 357104b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qutip/tests/solver/heom/test_bofin_baths.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import numpy as np
import pytest
import sys

from qutip import spre, spost, sigmax, sigmaz
from qutip.core import data as _data
Expand Down Expand Up @@ -657,6 +658,8 @@ def test_power_spectrum(self):
assert np.isclose(S, np.array([-2.4 + 0j]))


@pytest.mark.skipif('mpmath' not in sys.modules,
reason="requires the mpmath library")
class TestOhmicBath:
alpha = 0.5
s = 1
Expand Down

0 comments on commit 357104b

Please sign in to comment.