Ignore test failures on arm64, warn on armel
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 29 Aug 2021 19:09:28 +0000 (20:09 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 29 Aug 2021 19:09:28 +0000 (20:09 +0100)
arm64 - TestZeroInflatedModel_probit convergence issues
armel - 21 crashes, 2 wrong answers (ignored in d/rules)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
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
statsmodels/discrete/tests/test_count_model.py

index 9620750bf82802d3b3fda913149923f74c1eda7c..6b25b975006a5f325558bb5b90d4236a09078027 100644 (file)
@@ -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
 
index a1302f2e3f9a6044694cd1ad5478a57b44f8e4b5..bb5af1f111a4ee3869d5b56c5ee1387ed88061b3 100644 (file)
@@ -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()