shithub: aubio

Download patch

ref: c2f7db8416f143c1f09dda351c0c63643683ed2d
parent: 04fc360dedaec88c6a17c8ee3ce94ece4dc3caf3
author: Paul Brossier <piem@piem.org>
date: Tue Sep 20 21:49:16 EDT 2016

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

--- a/python/tests/test_pitchshift.py
+++ b/python/tests/test_pitchshift.py
@@ -71,7 +71,10 @@
             ("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
--