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
6from aubio import source6from aubio import source
7from utils import list_all_sounds7from utils import list_all_sounds
8 8
9import warnings
10warnings.filterwarnings('ignore', category=UserWarning, append=True)
11
9list_of_sounds = list_all_sounds('sounds')12list_of_sounds = list_all_sounds('sounds')
10samplerates = [0, 44100, 8000, 32000]13samplerates = [0, 44100, 8000, 32000]
11hop_sizes = [512, 1024, 64]14hop_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