Xfail or loosen tolerances on flaky tests
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 29 Aug 2021 19:09:28 +0000 (20:09 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 29 Aug 2021 19:09:28 +0000 (20:09 +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 fd02b813322b05145c6e4e1849ebbe222a75a2e8..c245c68c2bc42e5652f50a8908154a2dcc5a787e 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 e1a25e19c11222ecaa1db1168ec19d54b4e6452e..80128a1920cdd86ee7e332ef0ece5f8afa4afcdf 100644 (file)
@@ -905,6 +905,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):