Skip to content

Commit 2ec02a3

Browse files
author
Stephen Hogg
committed
fix test_step.py
1 parent c9c40ff commit 2ec02a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc3/tests/test_step.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,15 +963,15 @@ def test_bad_init_nonparallel(self):
963963
HalfNormal("a", sigma=1, testval=-1, transform=None)
964964
with pytest.raises(SamplingError) as error:
965965
sample(init=None, chains=1, random_seed=1)
966-
error.match("Bad initial")
966+
error.match("Initial evaluation")
967967

968968
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher")
969969
def test_bad_init_parallel(self):
970970
with Model():
971971
HalfNormal("a", sigma=1, testval=-1, transform=None)
972-
with pytest.raises(ParallelSamplingError) as error:
972+
with pytest.raises(SamplingError) as error:
973973
sample(init=None, cores=2, random_seed=1)
974-
error.match("Bad initial")
974+
error.match("Initial evaluation")
975975

976976
def test_linalg(self, caplog):
977977
with Model():

0 commit comments

Comments
 (0)