Ignore test failures on arm64, warn on mips64el
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 17 Dec 2021 22:32:59 +0000 (22:32 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 17 Dec 2021 22:32:59 +0000 (22:32 +0000)
arm64 - TestZeroInflatedModel_probit convergence issues
mips64el - tests crash, hence
unknown whether there are any wrong answers (ignored in d/rules)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/968210
Forwarded: no

Gbp-Pq: Name 968210_ignore_tests.patch

statsmodels/__init__.py
statsmodels/discrete/tests/test_count_model.py

index 9620750bf82802d3b3fda913149923f74c1eda7c..0b31cae8a79c1584027251b0baf2f9dc3c121af2 100644 (file)
@@ -1,3 +1,8 @@
+import platform
+import sys
+if 'mips' in platform.uname()[4].lower() and sys.maxsize>2**33:
+    import warnings
+    warnings.warn("This appears to be a mips64el system, on which statsmodels is buggy (crashes and possibly wrong answers) - https://bugs.debian.org/968210")
 
 from statsmodels._version import get_versions
 
index 11c5a0ef645d80d0b30f2a23f85f229e7d72c25c..3efca32324cdb042bc57fdd455fac878f5c6047e 100644 (file)
@@ -1,4 +1,5 @@
 from statsmodels.compat.platform import PLATFORM_LINUX32
+import platform
 
 import numpy as np
 from numpy.testing import (
@@ -109,7 +110,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()