Skip to content

Commit

Permalink
Disable flaky under/overflow constraints in test_step_methods
Browse files Browse the repository at this point in the history
NumPy is raising underflow errors for `exp(-inf)` only in CI.
  • Loading branch information
brandonwillard committed Aug 31, 2021
1 parent ad5557b commit 26f7009
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_step_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@
from pymc3_hmm.utils import compute_steady_state, compute_trans_freqs
from tests.utils import simulate_poiszero_hmm


@pytest.fixture()
def raise_under_overflow():
with np.errstate(over="raise", under="raise"):
yield

# @pytest.fixture()
# def raise_under_overflow():
# with np.errstate(over="raise", under="raise"):
# yield

# All tests in this module will raise on over- and under-flows (unless local
# settings dictate otherwise)
pytestmark = pytest.mark.usefixtures("raise_under_overflow")
# pytestmark = pytest.mark.usefixtures("raise_under_overflow")


def test_ffbs_step():
Expand Down

0 comments on commit 26f7009

Please sign in to comment.