diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2013-12-23 10:45:54 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2013-12-23 15:45:40 +0100 |
commit | 9e836c2c5cc0911269ac692a25fc4ec42273354b (patch) | |
tree | 4ac06c498907f324ab9280776be3e354b1d070eb /numpy/lib/tests/test_function_base.py | |
parent | 8d4cc1e485d518a48111ce1b0e38edd7a8279946 (diff) | |
download | numpy-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.py | 2 |
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 |