From d45f5274ff7a1232f0773c559bb0f3a48a5e839a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 22 Sep 2016 22:55:53 +0200 Subject: [PATCH] python/tests/test_source.py: filter user warnings to avoid spamming the console --- python/tests/test_source.py | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.11.0