From 98e9d69fde9bc4265cda079a558b566d37551033 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 28 Apr 2016 19:33:31 +0200 Subject: [PATCH] python/tests/test_phasevoc.py: add a note about ocasional crash --- python/tests/test_phasevoc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/tests/test_phasevoc.py b/python/tests/test_phasevoc.py index 7e14b941..9e866d6f 100755 --- a/python/tests/test_phasevoc.py +++ b/python/tests/test_phasevoc.py @@ -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 -- 2.11.0