projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67537d7
)
python/tests/test_source.py: filter user warnings to avoid spamming the console
author
Paul Brossier
<piem@piem.org>
Thu, 22 Sep 2016 20:55:53 +0000
(22:55 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 22 Sep 2016 20:55:53 +0000
(22:55 +0200)
python/tests/test_source.py
patch
|
blob
|
history
diff --git
a/python/tests/test_source.py
b/python/tests/test_source.py
index
c1df5ec
..
4e24584
100755
(executable)
--- a/
python/tests/test_source.py
+++ b/
python/tests/test_source.py
@@
-6,6
+6,9
@@
from numpy.testing import TestCase
from aubio import source
from utils import list_all_sounds
+import warnings
+warnings.filterwarnings('ignore', category=UserWarning, append=True)
+
list_of_sounds = list_all_sounds('sounds')
samplerates = [0, 44100, 8000, 32000]
hop_sizes = [512, 1024, 64]