Avoid test failure on mipsel
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 5 Oct 2024 10:43:25 +0000 (11:43 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 5 Oct 2024 10:43:25 +0000 (11:43 +0100)
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/statsmodels/statsmodels/8341
Bug-Debian: https://bugs.debian.org/1014884
Forwarded: no

Gbp-Pq: Name 1014884_loosen_test_tolerances.patch

statsmodels/sandbox/regression/tests/test_gmm.py

index f20ffdf55fdaf2a716bbea44c319ff4eda3c34d3..6ac24c24b2874a1ed1a4e6ae926b200b7054370f 100644 (file)
@@ -8,6 +8,7 @@ from statsmodels.compat.python import lrange, lmap
 
 import os
 import copy
+import platform
 
 import pytest
 import numpy as np
@@ -563,7 +564,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()