From: Paul Brossier Date: Thu, 28 Apr 2016 17:33:31 +0000 (+0200) Subject: python/tests/test_phasevoc.py: add a note about ocasional crash X-Git-Tag: 0.4.4~300^2~198 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=98e9d69fde9bc4265cda079a558b566d37551033;p=aubio.git python/tests/test_phasevoc.py: add a note about ocasional crash --- 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