Skip to content

Commit ccf5c93

Browse files
committed
Fix test to deal with edge case of 1 div
1 parent 2f77f99 commit ccf5c93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymc3/tests/test_step.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ def test_linalg(self, caplog):
446446
warns = [msg.msg for msg in caplog.records]
447447
assert np.any(trace['diverging'])
448448
assert (
449+
any('divergence after tuning' in warn
450+
for warn in warns)
451+
or
449452
any('divergences after tuning' in warn
450453
for warn in warns)
451454
or

0 commit comments

Comments
 (0)