ref: 44312de69a25c21d2ef48471ff7f09c1c1ce18c6
parent: 88554b9b6fd8d6283d4947014236fd224519210d
author: Paul Brossier <piem@piem.org>
date: Wed May 11 07:00:22 EDT 2016
python/tests/test_fvec.py: cope with accumulated errors
--- a/python/tests/test_fvec.py
+++ b/python/tests/test_fvec.py
@@ -97,7 +97,7 @@
x = np.random.rand(1024).astype(float_type)
alpha = np.random.rand() * 5.
x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha)
- assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm)
+ assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5)
class aubio_zero_crossing_rate_test(TestCase):