summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2013-12-23 10:45:54 +0100
committerRalf Gommers <ralf.gommers@googlemail.com>2013-12-23 15:45:40 +0100
commit9e836c2c5cc0911269ac692a25fc4ec42273354b (patch)
tree4ac06c498907f324ab9280776be3e354b1d070eb /numpy/lib/tests/test_function_base.py
parent8d4cc1e485d518a48111ce1b0e38edd7a8279946 (diff)
downloadnumpy-9e836c2c5cc0911269ac692a25fc4ec42273354b.tar.gz
TST: fix test failure due to comparing floats with assert_equal.
Observed on 32-bit linux with python 3.4b1
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 2255c0b36..494b512f7 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -972,7 +972,7 @@ class TestHistogram(TestCase):
# Normalization
h, b = histogram(a, range=[1, 9], normed=True)
- assert_equal((h * diff(b)).sum(), 1)
+ assert_almost_equal((h * diff(b)).sum(), 1, decimal=15)
# Weights
w = np.arange(10) + .5