From ad7411287cd7ee438e90693da3cfe72a05d87f98 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sat, 6 Feb 2021 16:48:16 +0000 Subject: [PATCH] Ignore test failures on arm64, warn on armel arm64 - TestZeroInflatedModel_probit convergence issues armel - 21 crashes, 2 wrong answers (ignored in d/rules) Author: Rebecca N. Palmer Bug-Debian: https://bugs.debian.org/968210 Forwarded: no (current form does not work on non-multiarch systems) Gbp-Pq: Name 968210_ignore_tests.patch --- statsmodels/__init__.py | 4 ++++ statsmodels/discrete/tests/test_count_model.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/statsmodels/__init__.py b/statsmodels/__init__.py index 9620750..6b25b97 100644 --- a/statsmodels/__init__.py +++ b/statsmodels/__init__.py @@ -1,3 +1,7 @@ +import os.path +if os.path.exists('/usr/lib/arm-linux-gnueabi'): + import warnings + warnings.warn("This appears to be an armel system, on which statsmodels is buggy (crashes and/or wrong answers) - https://bugs.debian.org/968210") from statsmodels._version import get_versions diff --git a/statsmodels/discrete/tests/test_count_model.py b/statsmodels/discrete/tests/test_count_model.py index a1302f2..bb5af1f 100644 --- a/statsmodels/discrete/tests/test_count_model.py +++ b/statsmodels/discrete/tests/test_count_model.py @@ -1,4 +1,5 @@ from statsmodels.compat.platform import PLATFORM_LINUX32 +import platform import numpy as np from numpy.testing import (assert_, @@ -102,7 +103,7 @@ class TestZeroInflatedModel_probit(CheckGeneric): res2 = RandHIE.zero_inflated_poisson_probit cls.res2 = res2 - @pytest.mark.skipif(PLATFORM_LINUX32, reason="Fails on 32-bit Linux") + @pytest.mark.xfail(condition=PLATFORM_LINUX32 or platform.uname()[4].startswith('aarch'), strict=False, reason="convergence issues, https://bugs.debian.org/968210") def test_fit_regularized(self): super().test_fit_regularized() -- 2.30.2