History

python/tests/test_pitchshift.py: catch runtime error here too

Paul Brossier committed 10 years ago

Commit c2f7db81 parent 04fc3601 file · +4 −1Browse files

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

Unified · Split

python/tests/test_pitchshift.py+4−1
@@ -71,7 +71,10 @@ class aubio_pitchshift_testruns(TestCase): · 70 unmodified lines
71 ("crispness:6", 2.3, 4096, 192000),71 ("crispness:6", 2.3, 4096, 192000),
72 )72 )
73 def test_run_with_params(self, mode, pitchscale, hop_size, samplerate):73 def test_run_with_params(self, mode, pitchscale, hop_size, samplerate):
74 self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)74 try:
75 self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)
76 except RuntimeError as e:
77 self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)")
75 test_length = self.o.hop_size * 5078 test_length = self.o.hop_size * 50
76 read = 079 read = 0
77 # test on random80 # test on random

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