|
|
c9dc33 |
diff --git a/scipy/sparse/linalg/_isolve/tests/test_iterative.py b/scipy/sparse/linalg/_isolve/tests/test_iterative.py
|
|
|
c9dc33 |
index a782a8d27c2..48fc16b7a00 100644
|
|
|
c9dc33 |
--- a/scipy/sparse/linalg/_isolve/tests/test_iterative.py
|
|
|
c9dc33 |
+++ b/scipy/sparse/linalg/_isolve/tests/test_iterative.py
|
|
|
c9dc33 |
@@ -409,7 +409,9 @@ def test_atol(solver):
|
|
|
c9dc33 |
residual = A.dot(x) - b
|
|
|
c9dc33 |
err = np.linalg.norm(residual)
|
|
|
c9dc33 |
atol2 = tol * b_norm
|
|
|
c9dc33 |
- assert_(err <= max(atol, atol2))
|
|
|
c9dc33 |
+ # Added 1.00025 fudge factor because of `err` exceeding `atol` just
|
|
|
c9dc33 |
+ # very slightly on s390x (see gh-17839)
|
|
|
c9dc33 |
+ assert_(err <= 1.00025 * max(atol, atol2))
|
|
|
c9dc33 |
|
|
|
c9dc33 |
|
|
|
c9dc33 |
@pytest.mark.parametrize("solver", [cg, cgs, bicg, bicgstab, gmres, qmr, minres, lgmres, gcrotmk, tfqmr])
|
|
|
c9dc33 |
@@ -452,8 +454,10 @@ def test_zero_rhs(solver):
|
|
|
c9dc33 |
and sys.version_info[1] == 9,
|
|
|
c9dc33 |
reason="gh-13019")),
|
|
|
c9dc33 |
qmr,
|
|
|
c9dc33 |
- pytest.param(lgmres, marks=pytest.mark.xfail(platform.machine() == 'ppc64le',
|
|
|
c9dc33 |
- reason="fails on ppc64le")),
|
|
|
c9dc33 |
+ pytest.param(lgmres, marks=pytest.mark.xfail(
|
|
|
c9dc33 |
+ platform.machine() not in ['x86_64' 'x86', 'aarch64', 'arm64'],
|
|
|
c9dc33 |
+ reason="fails on at least ppc64le, ppc64 and riscv64, see gh-17839")
|
|
|
c9dc33 |
+ ),
|
|
|
c9dc33 |
pytest.param(cgs, marks=pytest.mark.xfail),
|
|
|
c9dc33 |
pytest.param(bicg, marks=pytest.mark.xfail),
|
|
|
c9dc33 |
pytest.param(bicgstab, marks=pytest.mark.xfail),
|
|
|
c9dc33 |
diff --git a/scipy/special/tests/test_orthogonal.py b/scipy/special/tests/test_orthogonal.py
|
|
|
c9dc33 |
index a325cb1a9ef..408b03bde2e 100644
|
|
|
c9dc33 |
--- a/scipy/special/tests/test_orthogonal.py
|
|
|
c9dc33 |
+++ b/scipy/special/tests/test_orthogonal.py
|
|
|
c9dc33 |
@@ -546,7 +546,7 @@ def test_roots_gegenbauer():
|
|
|
c9dc33 |
vgq(rootf(170), evalf(170), weightf(170), -1., 1., 5, atol=1e-13)
|
|
|
c9dc33 |
vgq(rootf(170), evalf(170), weightf(170), -1., 1., 25, atol=1e-12)
|
|
|
c9dc33 |
vgq(rootf(170), evalf(170), weightf(170), -1., 1., 100, atol=1e-11)
|
|
|
c9dc33 |
- vgq(rootf(170.5), evalf(170.5), weightf(170.5), -1., 1., 5, atol=1e-13)
|
|
|
c9dc33 |
+ vgq(rootf(170.5), evalf(170.5), weightf(170.5), -1., 1., 5, atol=1.25e-13)
|
|
|
c9dc33 |
vgq(rootf(170.5), evalf(170.5), weightf(170.5), -1., 1., 25, atol=1e-12)
|
|
|
c9dc33 |
vgq(rootf(170.5), evalf(170.5), weightf(170.5), -1., 1., 100, atol=1e-11)
|
|
|
c9dc33 |
|
|
|
c9dc33 |
diff --git a/scipy/stats/tests/test_distributions.py b/scipy/stats/tests/test_distributions.py
|
|
|
c9dc33 |
index eceeafdffe0..139b0537174 100644
|
|
|
c9dc33 |
--- a/scipy/stats/tests/test_distributions.py
|
|
|
c9dc33 |
+++ b/scipy/stats/tests/test_distributions.py
|
|
|
c9dc33 |
@@ -4254,7 +4254,7 @@ def test_pdf_nolan_samples(
|
|
|
c9dc33 |
],
|
|
|
c9dc33 |
# for small alpha very slightly reduced accuracy
|
|
|
c9dc33 |
[
|
|
|
c9dc33 |
- 'piecewise', 5e-11, lambda r: (
|
|
|
c9dc33 |
+ 'piecewise', 2.5e-10, lambda r: (
|
|
|
c9dc33 |
np.isin(r['pct'], pct_range) &
|
|
|
c9dc33 |
np.isin(r['alpha'], alpha_range) &
|
|
|
c9dc33 |
np.isin(r['beta'], beta_range) &
|
|
|
c9dc33 |
@@ -4358,7 +4358,7 @@ def test_cdf_nolan_samples(
|
|
|
c9dc33 |
tests = [
|
|
|
c9dc33 |
# piecewise generally good accuracy
|
|
|
c9dc33 |
[
|
|
|
c9dc33 |
- 'piecewise', 1e-12, lambda r: (
|
|
|
c9dc33 |
+ 'piecewise', 2e-12, lambda r: (
|
|
|
c9dc33 |
np.isin(r['pct'], pct_range) &
|
|
|
c9dc33 |
np.isin(r['alpha'], alpha_range) &
|
|
|
c9dc33 |
np.isin(r['beta'], beta_range) &
|
|
|
c9dc33 |
@@ -4480,6 +4480,14 @@ def test_location_scale(
|
|
|
c9dc33 |
):
|
|
|
c9dc33 |
"""Tests for pdf and cdf where loc, scale are different from 0, 1
|
|
|
c9dc33 |
"""
|
|
|
c9dc33 |
+
|
|
|
c9dc33 |
+ uname = platform.uname()
|
|
|
c9dc33 |
+ is_linux_32 = uname.system == 'Linux' and "32bit" in platform.architecture()[0]
|
|
|
c9dc33 |
+ # Test seems to be unstable (see gh-17839 for a bug report on Debian
|
|
|
c9dc33 |
+ # i386), so skip it.
|
|
|
c9dc33 |
+ if is_linux_32 and case == 'pdf':
|
|
|
c9dc33 |
+ pytest.skip("Test unstable on some platforms; see gh-17839, 17859")
|
|
|
c9dc33 |
+
|
|
|
c9dc33 |
data = nolan_loc_scale_sample_data
|
|
|
c9dc33 |
# We only test against piecewise as location/scale transforms
|
|
|
c9dc33 |
# are same for other methods.
|
|
|
c9dc33 |
diff --git a/scipy/stats/tests/test_mstats_basic.py b/scipy/stats/tests/test_mstats_basic.py
|
|
|
c9dc33 |
index cd53c7b7914..76cbfd8c253 100644
|
|
|
c9dc33 |
--- a/scipy/stats/tests/test_mstats_basic.py
|
|
|
c9dc33 |
+++ b/scipy/stats/tests/test_mstats_basic.py
|
|
|
c9dc33 |
@@ -1768,8 +1768,8 @@ def test_skewtest_2D_WithMask(self):
|
|
|
c9dc33 |
r = stats.skewtest(x)
|
|
|
c9dc33 |
rm = stats.mstats.skewtest(xm)
|
|
|
c9dc33 |
|
|
|
c9dc33 |
- assert_allclose(r[0][0], rm[0][0], rtol=2e-15)
|
|
|
c9dc33 |
- assert_allclose(r[0][1], rm[0][1], rtol=1e-15)
|
|
|
c9dc33 |
+ assert_allclose(r[0][0], rm[0][0], rtol=1e-14)
|
|
|
c9dc33 |
+ assert_allclose(r[0][1], rm[0][1], rtol=1e-14)
|
|
|
c9dc33 |
|
|
|
c9dc33 |
def test_normaltest(self):
|
|
|
c9dc33 |
with np.errstate(over='raise'), suppress_warnings() as sup:
|