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
7171 ("crispness:6", 2.3, 4096, 192000),
7272 )
7373 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?)")
7578 test_length = self.o.hop_size * 50
7679 read = 0
7780 # 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