Skip to content

Commit af380e5

Browse files
committed
tests: adapt to new error handling
1 parent 6bf2cf2 commit af380e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/user_input_checks_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ def test_inference_with_user_sbi_problems(
371371
# Build posterior.
372372
if snpe_method == NPE_A:
373373
if not isinstance(prior, (MultivariateNormal, BoxUniform, DirectPosterior)):
374-
with pytest.raises(AssertionError):
375-
# NPE-A does not support priors yet.
374+
with pytest.raises(TypeError):
375+
# NPE-A only supports MultivariateNormal and BoxUniform priors.
376376
posterior_estimator = inference.correct_for_proposal()
377377
_ = DirectPosterior(
378378
posterior_estimator=posterior_estimator, prior=prior

0 commit comments

Comments
 (0)