shithub: aubio

Download patch

ref: 4afa448e6d9f82c28c2ebb2cb098d9f414a322d1
parent: 012b32453696aa3cadfaf749c20eb624594b93d2
author: Paul Brossier <piem@piem.org>
date: Wed Jul 11 10:41:04 EDT 2012

test_fvec.py: zero_crossing_rate almost equal

--- a/interfaces/python/test_fvec.py
+++ b/interfaces/python/test_fvec.py
@@ -85,7 +85,7 @@
 
     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')