From: Debian Science Maintainers Date: Sat, 19 Aug 2023 20:59:16 +0000 (+0100) Subject: Avoid test failure on mipsel X-Git-Tag: archive/raspbian/0.14.0+dfsg-5+rpi1^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d37dc0b8c4d186bccc342e66e51524c4867c5ad0;p=statsmodels.git Avoid test failure on mipsel Author: Rebecca N. Palmer Bug: https://github.com/statsmodels/statsmodels/8341 Bug-Debian: https://bugs.debian.org/1014884 Forwarded: no Gbp-Pq: Name 1014884_loosen_test_tolerances.patch --- diff --git a/statsmodels/sandbox/regression/tests/test_gmm.py b/statsmodels/sandbox/regression/tests/test_gmm.py index 0201358..9bbac3b 100644 --- a/statsmodels/sandbox/regression/tests/test_gmm.py +++ b/statsmodels/sandbox/regression/tests/test_gmm.py @@ -9,6 +9,7 @@ from statsmodels.compat.python import lrange, lmap import os import copy +import platform import pytest import numpy as np @@ -564,7 +565,7 @@ class TestGMMStOneiterOLS_Linear(CheckGMM): @classmethod def setup_class(cls): # replicating OLS by GMM - high agreement - cls.params_tol = [1e-11, 1e-12] + cls.params_tol = [1e-11, 2e-12 if 'mips' in platform.uname()[4].lower() else 1e-12] cls.bse_tol = [1e-12, 1e-12] exog = exog_st # with const at end res_ols = OLS(endog, exog).fit()