Skip to content

Commit

Permalink
test: Adjust test for Stan 2.35
Browse files Browse the repository at this point in the history
  • Loading branch information
riddell-stan committed Jul 3, 2024
1 parent 1c06aa8 commit cdd7b5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 22 deletions.
16 changes: 16 additions & 0 deletions tests/test_initialization_failed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

import stan

# program code designed to generate initialization failed exception
program_code = "parameters { real y; } model { y ~ uniform(1.9, 2); }" ""


@pytest.fixture(scope="module")
def posterior():
return stan.build(program_code, random_seed=1)


def test_initialization_failed_exception(posterior):
with pytest.raises(RuntimeError, match=r"Initialization between"):
posterior.sample()
22 changes: 0 additions & 22 deletions tests/test_logger_messages.py

This file was deleted.

0 comments on commit cdd7b5f

Please sign in to comment.