python/tests/test_pitchshift.py: skip test on RuntimeError
authorPaul Brossier <piem@piem.org>
Sat, 17 Sep 2016 01:09:42 +0000 (03:09 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 17 Sep 2016 01:09:42 +0000 (03:09 +0200)
python/tests/test_pitchshift.py

index 37d9926..27b675a 100755 (executable)
@@ -6,7 +6,10 @@ import aubio
 class aubio_pitchshift(TestCase):
 
     def setUp(self):
-        self.o = aubio.pitchshift()
+        try:
+            self.o = aubio.pitchshift()
+        except RuntimeError as e:
+            self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)")
 
     def test_default_creation(self):
         self.assertEqual(self.o.get_pitchscale(), 1)