projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6937842
)
python/tests/test_phasevoc.py: add a note about ocasional crash
author
Paul Brossier
<piem@piem.org>
Thu, 28 Apr 2016 17:33:31 +0000
(19:33 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 28 Apr 2016 17:33:31 +0000
(19:33 +0200)
python/tests/test_phasevoc.py
patch
|
blob
|
history
diff --git
a/python/tests/test_phasevoc.py
b/python/tests/test_phasevoc.py
index
7e14b94
..
9e866d6
100755
(executable)
--- 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