History

python/tests/test_source.py: filter user warnings to avoid spamming the console

Paul Brossier committed 10 years ago

Commit d45f5271 parent 67537d71 file · +3 −0Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_source.py+3−0
@@ -6,6 +6,9 @@ from numpy.testing import TestCase · 5 unmodified lines
66 from aubio import source
77 from utils import list_all_sounds
88
9+import warnings
10+warnings.filterwarnings('ignore', category=UserWarning, append=True)
11+
912 list_of_sounds = list_all_sounds('sounds')
1013 samplerates = [0, 44100, 8000, 32000]
1114 hop_sizes = [512, 1024, 64]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t