From: Debian Science Maintainers Date: Tue, 14 Feb 2023 22:28:59 +0000 (+0000) Subject: Ignore a failure to converge on mipsel X-Git-Tag: archive/raspbian/0.13.5+dfsg-7+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c93d7cd1af8cfa57f54b6dac3c78a3ef8b67b9b1;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