python/tests/test_pitchshift.py: catch runtime error here too
authorPaul Brossier <piem@piem.org>
Tue, 20 Sep 2016 23:49:16 +0000 (01:49 +0200)
committerPaul Brossier <piem@piem.org>
Tue, 20 Sep 2016 23:49:16 +0000 (01:49 +0200)
python/tests/test_pitchshift.py

index 37041bd..2db9d4d 100755 (executable)
@@ -71,7 +71,10 @@ class aubio_pitchshift_testruns(TestCase):
             ("crispness:6", 2.3, 4096, 192000),
             )
     def test_run_with_params(self, mode, pitchscale, hop_size, samplerate):
-        self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)
+        try:
+            self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)
+        except RuntimeError as e:
+            self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)")
         test_length = self.o.hop_size * 50
         read = 0
         # test on random