From: Debian Science Maintainers Date: Sat, 4 Feb 2023 20:49:19 +0000 (+0000) Subject: Ignore a failure to converge on mipsel X-Git-Tag: archive/raspbian/0.13.5+dfsg-6+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1a89a5458782df2e3fc62fc61a418882eb21e3d8;p=statsmodels.git Ignore a failure to converge on mipsel (Seen to fail in 0.13.5+dfsg-5, twice on mipsel. Not a plain mark.xfail to not accept "converged" to the wrong answer.) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name mips_ignore_nonconverge.patch --- diff --git a/statsmodels/stats/tests/test_corrpsd.py b/statsmodels/stats/tests/test_corrpsd.py index a570005..65f0159 100644 --- a/statsmodels/stats/tests/test_corrpsd.py +++ b/statsmodels/stats/tests/test_corrpsd.py @@ -6,6 +6,7 @@ Created on Mon May 27 12:07:02 2013 Author: Josef Perktold """ import warnings +import platform import numpy as np from numpy.testing import assert_almost_equal, assert_allclose @@ -331,6 +332,8 @@ class Test_Factor(object): mat_dense = dense_rslt.corr.to_matrix() mat_sparse = sparse_rslt.corr.to_matrix() + if 'mips' in platform.uname()[4].lower() and not sparse_rslt.Converged: + pytest.xfail() assert dense_rslt.Converged is sparse_rslt.Converged assert dense_rslt.Converged is True