Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

TST: increase test tolerances for 2 scipy.special tests.

Reported by Yaroslav Halchenko to fail for 0.11.0rc1 on Debian, s390x
architecture, as well as by Derek Homeier for 0.8.0rc3 on PPC OS X.
  • Loading branch information...
commit f55282c70a3bab9377173a2802028f6d82240a59 1 parent c30adde
@rgommers rgommers authored
View
2  scipy/special/tests/test_basic.py
@@ -1656,7 +1656,7 @@ def test_iv_cephes_vs_amos_mass_test(self):
# Most error apparently comes from AMOS and not our implementation;
# there are some problems near integer orders there
- assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j)))
+ assert_(dc[k] < 2e-7, (v[k], x[k], special.iv(v[k], x[k]), special.iv(v[k], x[k]+0j)))
def test_kv_cephes_vs_amos(self):
#self.check_cephes_vs_amos(kv, kn, rtol=1e-9, atol=1e-305)
View
2  scipy/special/tests/test_data.py
@@ -96,7 +96,7 @@ def test_boost():
data(gamma, 'test_gamma_data_ipp-near_1', 0, 1),
data(gamma, 'test_gamma_data_ipp-near_2', 0, 1),
data(gamma, 'test_gamma_data_ipp-near_m10', 0, 1),
- data(gamma, 'test_gamma_data_ipp-near_m55', 0, 1),
+ data(gamma, 'test_gamma_data_ipp-near_m55', 0, 1, rtol=7e-12),
data(gamma, 'test_gamma_data_ipp-near_0', 0j, 1, rtol=2e-9),
data(gamma, 'test_gamma_data_ipp-near_1', 0j, 1, rtol=2e-9),
data(gamma, 'test_gamma_data_ipp-near_2', 0j, 1, rtol=2e-9),
Please sign in to comment.
Something went wrong with that request. Please try again.