From 4afa448e6d9f82c28c2ebb2cb098d9f414a322d1 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 11 Jul 2012 14:41:04 -0600 Subject: [PATCH] test_fvec.py: zero_crossing_rate almost equal --- interfaces/python/test_fvec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/python/test_fvec.py b/interfaces/python/test_fvec.py index b374c4e1..80e8fceb 100644 --- a/interfaces/python/test_fvec.py +++ b/interfaces/python/test_fvec.py @@ -85,7 +85,7 @@ class aubio_fvec_test_case(TestCase): def test_zero_crossing_rate(self): a = array([0,1,-1], dtype='float32') - self.assertEquals (zero_crossing_rate(a), 1./3 ) + assert_almost_equal (zero_crossing_rate(a), 1./3. ) a = array([0.]*100, dtype='float32') self.assertEquals (zero_crossing_rate(a), 0 ) a = array([-1.]*100, dtype='float32') -- 2.26.2