From: Paul Brossier Date: Thu, 22 Sep 2016 20:55:53 +0000 (+0200) Subject: python/tests/test_source.py: filter user warnings to avoid spamming the console X-Git-Tag: 0.4.4~205 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=d45f5274ff7a1232f0773c559bb0f3a48a5e839a;p=aubio.git python/tests/test_source.py: filter user warnings to avoid spamming the console --- diff --git a/python/tests/test_source.py b/python/tests/test_source.py index c1df5ec1..4e245842 100755 --- 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]