From 5039244920e9083f3bf1508ad8960cc24514cb83 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 21 Jun 2019 14:03:14 +0200 Subject: [PATCH] [py] relax precision for 32bit systems --- python/tests/test_hztomel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_hztomel.py b/python/tests/test_hztomel.py index fcd8fa1d..63bec615 100755 --- a/python/tests/test_hztomel.py +++ b/python/tests/test_hztomel.py @@ -19,8 +19,8 @@ class aubio_hztomel_test_case(TestCase): assert_almost_equal(hztomel(1000. / 3), 5.) assert_equal(hztomel(200.), 3.) assert_almost_equal(hztomel(1000.), 15) - assert_almost_equal(hztomel(6400), 42) - assert_almost_equal(hztomel(40960), 69) + assert_almost_equal(hztomel(6400), 42, decimal=5) + assert_almost_equal(hztomel(40960), 69, decimal=5) for m in np.linspace(0, 1000, 100): assert_almost_equal(hztomel(meltohz(m)) - m, 0, decimal=3) -- 2.11.0