python/tests/test_source.py: filter user warnings to avoid spamming the console
authorPaul Brossier <piem@piem.org>
Thu, 22 Sep 2016 20:55:53 +0000 (22:55 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 22 Sep 2016 20:55:53 +0000 (22:55 +0200)
python/tests/test_source.py

index c1df5ec..4e24584 100755 (executable)
@@ -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]