from numpy import arange
from numpy.testing import assert_allclose, assert_equal
from scipy import stats
+# armel numpy currently doesn't have the divide-by-0 warning (see 0.14.0-1 build log and https://bugs.debian.org/956882)
+# using nullcontext() instead of warn=None to not start failing if this ever gets fixed
+import subprocess
+import contextlib
+debian_arch = subprocess.run(["dpkg","--print-architecture"],capture_output=True,encoding='utf-8').stdout.strip()
+
# we cannot import test_poisson_2indep directly, pytest treats that as test
from statsmodels.compat.python import PYTHON_IMPL_WASM
# check corner case count2 = 0, see issue #8313
if not PYTHON_IMPL_WASM: # No fp exception support in WASM
- with pytest.warns(RuntimeWarning):
+ with (contextlib.nullcontext() if debian_arch=='armel' else pytest.warns(RuntimeWarning)):
smr.test_poisson_2indep(
count1, n1, 0, n2, method=meth,
compare=compare,