python/tests/test_phasevoc.py: add a note about ocasional crash
authorPaul Brossier <piem@piem.org>
Thu, 28 Apr 2016 17:33:31 +0000 (19:33 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 28 Apr 2016 17:33:31 +0000 (19:33 +0200)
python/tests/test_phasevoc.py

index 7e14b94..9e866d6 100755 (executable)
@@ -74,7 +74,10 @@ class aubio_pvoc_test_case(TestCase):
         r2 = f.rdo( f(sigin) )
         for i in range(1, ratio):
             r2 = f.rdo( f(zeros) )
-        return r2
+
+        # FIXME: if we don't return a copy here, test_phasevoc.py will crash
+        # once in a while
+        return np.copy(r2)
 
     def plot_this( self, this ):
         from pylab import semilogy, show