summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-06-18 13:00:33 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-06-19 13:47:20 -0600
commit55002a5204240bfaabdc19bd670c50e47881247c (patch)
tree4dd6397925ce4a89639993f1b543ff2b4eb167fe /numpy/lib/tests/test_function_base.py
parent812ca6fcb2461e2617a50c0c132a1a27ac134849 (diff)
downloadnumpy-55002a5204240bfaabdc19bd670c50e47881247c.tar.gz
ENH: Make assert_almost_equal & assert_array_almost_equal consistent.
This changes the check for scalars in assert_almost_equal so that abs(actual - desired) < 1.5 * 10**(-decimal) Note that the previous documentation claimed that the functions were equivalent to abs(actual - desired) < .5 * 10**(-decimal) but that was not how they behaved in practice. Due to the change in implementation, some very delicate tests may fail that did not fail before. No extra failures were noted in scipy. Closes #5200.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions