Skip to content

Commit 7096547

Browse files
committed
Seed sampling in TestNutsCheckTrace.test_linalg
1 parent c243c9b commit 7096547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/tests/test_step.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def test_linalg(self, caplog):
523523
b = at.slinalg.solve(floatX(np.eye(2)), a, check_finite=False)
524524
Normal("c", mu=b, size=2, initval=floatX(np.r_[0.0, 0.0]))
525525
caplog.clear()
526-
trace = sample(20, tune=5, chains=2, return_inferencedata=False)
526+
trace = sample(20, tune=5, chains=2, return_inferencedata=False, random_seed=526)
527527
warns = [msg.msg for msg in caplog.records]
528528
assert np.any(trace["diverging"])
529529
assert (

0 commit comments

Comments
 (0)