Xfail or loosen tolerances on flaky tests
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 10 Jul 2020 05:46:36 +0000 (06:46 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 10 Jul 2020 05:46:36 +0000 (06:46 +0100)
The test_nondiagonal_obs_cov one hasn't yet been seen in Debian
but is known in upstream CI:
https://github.com/statsmodels/statsmodels/pull/6475#issuecomment-581151072

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>, Graham Inggs
Bug-Debian: https://bugs.debian.org/944054
Forwarded: no

Gbp-Pq: Name 944054_flaky_tests.patch

statsmodels/base/tests/test_penalized.py
statsmodels/tsa/statespace/tests/test_exact_diffuse_filtering.py

index f519bc69abfbaec02f9b366e41f7452afddd0a4b..175e242f832fdba7b8ae63b9f0d1972065ac4e7f 100644 (file)
@@ -312,6 +312,7 @@ class TestPenalizedPoissonOraclePenalized(CheckPenalizedPoisson):
         cls.atol = 1e-3
 
 
+@pytest.mark.xfail(reason="flaky convergence, https://bugs.debian.org/944054",strict=False)
 class TestPenalizedPoissonOraclePenalized2(CheckPenalizedPoisson):
 
     @classmethod
@@ -340,6 +341,7 @@ class TestPenalizedPoissonOraclePenalized2(CheckPenalizedPoisson):
         assert_equal(self.res1.bse[self.k_nonzero:], 0)
 
 
+@pytest.mark.xfail(reason="flaky convergence, https://bugs.debian.org/944054",strict=False)
 class TestPenalizedPoissonOraclePenalized2HC(CheckPenalizedPoisson):
 
     @classmethod
index a794fb2dd6cab7521475295b9e457e5d653c4288..34d81a8cfd4c45823d796ba66eed42d2a980d190 100644 (file)
@@ -904,6 +904,7 @@ class TestDFM_Approx(CheckApproximateDiffuseMixin, CheckDFM):
     # we cannot increase it too much more than this because then we start get
     # numerical errors (e.g. 1e11 works but 1e12 does not pass)
     approximate_diffuse_variance = 5e10
+    rtol = 1e-6
 
 
 class TestDFM_KFAS(CheckKFASMixin, CheckDFM):