Skip to content

Commit a5b3241

Browse files
importorskip nutpie backend test
1 parent ca04890 commit a5b3241

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/sampling/test_mcmc_external.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def test_numba_backend_options(pymc_model, recwarn, backend):
117117

118118

119119
def test_invalid_nutpie_backend_raises(pymc_model):
120+
pytest.importorskip("nutpie")
120121
with pytest.raises(ValueError, match='Expected one of "numba" or "jax"; found "invalid"'):
121122
with pymc_model:
122123
sample(nuts_sampler="nutpie[invalid]", random_seed=123, chains=2, tune=500, draws=500)

0 commit comments

Comments
 (0)