From 0ad087a6603326b37fc4baabbebe6d2ae0e8c5da Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Mon, 6 Jul 2020 15:09:17 +0100 Subject: [PATCH] MAINT: Relax test tolerance Relax tolerance to avoid spurious failures --- statsmodels/tsa/statespace/tests/test_smoothing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statsmodels/tsa/statespace/tests/test_smoothing.py b/statsmodels/tsa/statespace/tests/test_smoothing.py index 7b6a527bd3c..2a7d80bfa62 100644 --- a/statsmodels/tsa/statespace/tests/test_smoothing.py +++ b/statsmodels/tsa/statespace/tests/test_smoothing.py @@ -1461,7 +1461,8 @@ def test_news_revisions(missing, filter_univariate, tvp): # Test for the news desired = (res2.smoothed_forecasts[..., t] - out.revision_results.smoothed_forecasts[..., t]) - assert_allclose(out.update_impacts, desired, atol=1e-12) + # Relaxed tolerance to 1e-10 after random failures + assert_allclose(out.update_impacts, desired, atol=1e-10) # Test for the revisions desired = (out.revision_results.smoothed_forecasts[..., t] -