summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-07-29 10:53:58 -0500
committerGitHub <noreply@github.com>2019-07-29 10:53:58 -0500
commita162f643c6bb327d3f261a6012451fa95a0ccf3d (patch)
treedb7f5da7e2d03cf8959fcd1b867f592ed98dfdd3
parent798ae4317b1a166b1a78279716d8efe547224f58 (diff)
parent31730ea7693afa61ebd654e5a52806bb1959c448 (diff)
downloadnumpy-a162f643c6bb327d3f261a6012451fa95a0ccf3d.tar.gz
Merge pull request #14153 from IntelPython/expf-strided-test
TST: Allow fuss in testing strided/non-strided exp/log loops
-rw-r--r--numpy/core/tests/test_umath.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
index d2ce74282..91d403d98 100644
--- a/numpy/core/tests/test_umath.py
+++ b/numpy/core/tests/test_umath.py
@@ -14,7 +14,7 @@ from numpy.testing import (
assert_, assert_equal, assert_raises, assert_raises_regex,
assert_array_equal, assert_almost_equal, assert_array_almost_equal,
assert_array_max_ulp, assert_allclose, assert_no_warnings, suppress_warnings,
- _gen_alignment_data
+ _gen_alignment_data, assert_array_almost_equal_nulp
)
def on_powerpc():
@@ -700,8 +700,8 @@ class TestExpLogFloat32(object):
exp_true = np.exp(x_f32)
log_true = np.log(x_f32)
for jj in strides:
- assert_equal(np.exp(x_f32[::jj]), exp_true[::jj])
- assert_equal(np.log(x_f32[::jj]), log_true[::jj])
+ assert_array_almost_equal_nulp(np.exp(x_f32[::jj]), exp_true[::jj], nulp=2)
+ assert_array_almost_equal_nulp(np.log(x_f32[::jj]), log_true[::jj], nulp=2)
class TestLogAddExp(_FilterInvalids):
def test_logaddexp_values(self):