Skip to content

Commit 2c4a099

Browse files
committed
Fix test
1 parent afd399c commit 2c4a099

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_log_prob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def test_lp_bad(self):
2828
model = CmdStanModel(stan_file=BERN_STAN)
2929

3030
with LogCapture(level=logging.ERROR) as log:
31-
with self.assertRaisesRegex(RuntimeError, "failed with returncode"):
31+
with self.assertRaisesRegex(
32+
RuntimeError, "failed with return code"
33+
):
3234
model.log_prob({"not_here": 0.1}, data=BERN_DATA)
3335

3436
log.check_present(

0 commit comments

Comments
 (0)