From 7394016b9dd885480525f42ae8e64ff88da46ad7 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sun, 24 Jul 2022 17:51:07 +0100 Subject: [PATCH] Loosen tolerances on intermittently failing test Author: Josef Perktold, Rebecca N. Palmer Forwarded: https://github.com/statsmodels/statsmodels/issue/8195 Bug-Debian: https://bugs.debian.org/1008301 Gbp-Pq: Name 1008301_loosen_test_tolerances.patch --- .../sandbox/distributions/tests/test_multivariate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/statsmodels/sandbox/distributions/tests/test_multivariate.py b/statsmodels/sandbox/distributions/tests/test_multivariate.py index 3fd6f56..d17a141 100644 --- a/statsmodels/sandbox/distributions/tests/test_multivariate.py +++ b/statsmodels/sandbox/distributions/tests/test_multivariate.py @@ -129,15 +129,15 @@ class TestMVDistributions(object): mvn3 = self.mvn3 r_val = [-7.667977543898155, -6.917977543898155, -5.167977543898155] - assert_array_almost_equal(mvn3.logpdf(cov3), r_val, decimal=14) + assert_array_almost_equal(mvn3.logpdf(cov3), r_val, decimal=13) # decimal 18 r_val = [0.000467562492721686, 0.000989829804859273, 0.005696077243833402] - assert_array_almost_equal(mvn3.pdf(cov3), r_val, decimal=17) + assert_array_almost_equal(mvn3.pdf(cov3), r_val, decimal=15) mvn3b = MVNormal(np.array([0, 0, 0]), cov3) r_val = [0.02914269740502042, 0.02269635555984291, 0.01767593948287269] - assert_array_almost_equal(mvn3b.pdf(cov3), r_val, decimal=16) + assert_array_almost_equal(mvn3b.pdf(cov3), r_val, decimal=15) def test_mvt_pdf(self, reset_randomstate): cov3 = self.cov3 -- 2.30.2